Settings

Theme

Sliderland – Creative coding with 64 HTML sliders

sliderland.blinry.org

228 points by bryanbraun 4 years ago · 46 comments

Reader

slightknack 4 years ago

I had a little too much fun...

    x>0.2-abs(sin(t*2))*0.05&&x<0.8+abs(sin(t*2))*0.05?(i%2?(min((x-sin(t%1.57)*0.3-0.5)*tan(-t%1.57)+cos(t%1.57)*0.3+0.5,(x-sin(t%1.57-1.57)*0.3-0.5)*tan(-t%1.57-1.57)+cos(t%1.57-1.57)*0.3+0.5)*0.4+0.5):(1-(min((-x-sin(t%1.57)*0.3+0.5)*tan(-t%1.57)+cos(t%1.57)*0.3+0.5,(-x-sin(t%1.57-1.57)*0.3+0.5)*tan(-t%1.57-1.57)+cos(t%1.57-1.57)*0.3+0.5)*0.4+0.5))):0.5
https://sliderland.blinry.org/#x%3E0.2-abs%28sin%28t*2%29%29...
NickBusey 4 years ago

If you missed the link at the bottom to the music video, you missed out. https://www.youtube.com/watch?v=bUTPlQzfz1k

oneeyedpigeon 4 years ago

As someone's whose math(s) isn't up to scratch, I find the HTML sliders aspect of this the least interesting. But I love the demonstration of what you can do with a simple equation — it reminds me of some of the things I've seen people do with pico-8, for example. This demo right here absolutely destroys my cpu, tho...

zamadatix 4 years ago

Reminds me of an old Chrome Experiment post https://web.archive.org/web/20120103162101/http://toki-woki....

Doesn't exactly work right on modern browsers anymore but the gist was a 7 segment clock display made out of scrollbars.

bspammer 4 years ago

My attempt: https://sliderland.blinry.org/#i%252%20%3F%201-%280.5%2B%281...

DerekBickerton 4 years ago

Something similar: https://mrdoob.com/lab/javascript/checkbox_painter/

afry1 4 years ago

So cool! What a fantastically well presented piece. The simple step-by-step explanations of how to interact with and control the various function inputs left me feeling like I actually knew how to do something with it, which is a far cry from most interactive software playgrounds.

Well done.

Marazan 4 years ago

https://tixy.land/ seems to be the inspiration?

russellbeattie 4 years ago

Fun and simple, nice. I'd love to see the raw values presented using something like dat.gui, as well as basic play/pause/step controls.

https://github.com/dataarts/dat.gui

You can see how it's used in this codepen:

https://codepen.io/russellbeattie/pen/kGxaqM

brundolf 4 years ago

It's like a minimalist version of Shadertoy (https://www.shadertoy.com). Fun idea

PaulHoule 4 years ago

It's like a 1-d pixel shader!

Squarex 4 years ago

Nice reference to the Slint's Spiderland.

chaosprint 4 years ago

This is really cool. Is the music video related to the slider or it's just visualization? Would be cool to convert the func into sound like this:

https://glicol.org/tour#meta1

Will look into the source code tomorrow.

justinsaccount 4 years ago

https://sliderland.blinry.org/#sin%28t%2Bx%29*0.5%2B0.5 is very relaxing

dillondoyle 4 years ago

So cool. I like how didn't try to style slider input, it's hellish to get it to look nice across browsers.

xhrpost 4 years ago

I really like these super simple but creative ideas. Lists.sh a few weeks ago landed there for me as well.

dylan604 4 years ago

does the binary one going from left to right feel odd to anyone else?

brikelly 4 years ago

Guess the creator was a big Slint fan :)

sgtnoodle 4 years ago

log(tx)/2sin(x*t)/4+0.5

Has some pleasant aliasing effects.

cheeseface 4 years ago

Oddly satisfying.

couchand 4 years ago

This is really neat! Also, please don't hijack the back button if you're not going to do anything useful with it!

aaronharnly 4 years ago

No sandboxing, so this is easy enough to do too :)

https://sliderland.blinry.org/#document.body.style.backgroun...

squarefoot 4 years ago

Nice demo, but it pushes CPU usage from 1% to 17-20%, and could encourage the use of the wrong control for a given task. As an example, I've often seen on web pages check boxes (an input widget) used to represent read only boolean values where check marks would have been the correct choice.

  • panzerboiler 4 years ago

    Relax. It's a web toy inspired by another web toy. Nothing serious and nothing to be worried about. If you want to change the world for the better, fight against google, twitter, facebook, and their tracking ads networks. Those are the places where a serious amount of CPU cycles are wasted every second producing toxic matter. We need more creative (mis)uses of the web, not less.

    • squarefoot 4 years ago

      I wasn't bashing the creativity, however it should be noted somewhere that it's not the optimal way to use those controls. Although it seem obvious to most of us, people looking for programming examples might take it more seriously. I recall a colleague back in the day (late 90s to early 2k, VB or possibly Delphi) telling me: "heh, I didn't know where to find a sorting function for this and that, so I dragged on the app form a visual component (grid, list etc) having a similar method, made it invisible, then copied data back and forth using its cell/list/array sorting method: problem solved". Different context as my colleague knew it wasn't an optimal solution, but you get the point. I'd also encourage more creative (mis)uses of the web, but possibly with some warnings attached just in case.

      • shdon 4 years ago

        What controls? Those aren't sliders... it's an HTML Canvas. The only control there is a textarea to get the input formula.

      • sph 4 years ago

        This is not an app, it's not encouraging anything. Art isn't as interesting if you only do things the optimal way.

  • have_faith 4 years ago

    I think there's little risk of someone thinking this is a recommendation for a proper animation engine.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection