TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Sliderland – Creative coding with 64 HTML sliders

228 pointsby bryanbraunabout 3 years ago

23 comments

slightknackabout 3 years ago
I had a little too much fun...<p><pre><code> x&gt;0.2-abs(sin(t*2))*0.05&amp;&amp;x&lt;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 </code></pre> <a href="https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#x%3E0.2-abs%28sin%28t*2%29%29*0.05%26%26x%3C0.8%2Babs%28sin%28t*2%29%29*0.05%3F%28i%252%3F%28min%28%28x-sin%28t%251.57%29*0.3-0.5%29*tan%28-t%251.57%29%2Bcos%28t%251.57%29*0.3%2B0.5%2C%28x-sin%28t%251.57-1.57%29*0.3-0.5%29*tan%28-t%251.57-1.57%29%2Bcos%28t%251.57-1.57%29*0.3%2B0.5%29*0.4%2B0.5%29%3A%281-%28min%28%28-x-sin%28t%251.57%29*0.3%2B0.5%29*tan%28-t%251.57%29%2Bcos%28t%251.57%29*0.3%2B0.5%2C%28-x-sin%28t%251.57-1.57%29*0.3%2B0.5%29*tan%28-t%251.57-1.57%29%2Bcos%28t%251.57-1.57%29*0.3%2B0.5%29*0.4%2B0.5%29%29%29%3A0.5" rel="nofollow">https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#x%3E0.2-abs%28sin%28t*2%29%29...</a>
NickBuseyabout 3 years ago
If you missed the link at the bottom to the music video, you missed out. <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bUTPlQzfz1k" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=bUTPlQzfz1k</a>
oneeyedpigeonabout 3 years ago
As someone&#x27;s whose math(s) isn&#x27;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&#x27;ve seen people do with pico-8, for example. This demo right here absolutely destroys my cpu, tho...
评论 #31375095 未加载
评论 #31372201 未加载
zamadatixabout 3 years ago
Reminds me of an old Chrome Experiment post <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20120103162101&#x2F;http:&#x2F;&#x2F;toki-woki.net&#x2F;p&#x2F;scroll-clock&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20120103162101&#x2F;http:&#x2F;&#x2F;toki-woki....</a><p>Doesn&#x27;t exactly work right on modern browsers anymore but the gist was a 7 segment clock display made out of scrollbars.
bspammerabout 3 years ago
My attempt: <a href="https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#i%252%20%3F%201-%280.5%2B%281-abs%28i-32%29%2F32%29*sin%28t*2%29%2F2%29%20%3A%200.5%2B%281-abs%28i-32%29%2F32%29*sin%28t%29%2F2" rel="nofollow">https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#i%252%20%3F%201-%280.5%2B%281...</a>
评论 #31374128 未加载
DerekBickertonabout 3 years ago
Something similar: <a href="https:&#x2F;&#x2F;mrdoob.com&#x2F;lab&#x2F;javascript&#x2F;checkbox_painter&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mrdoob.com&#x2F;lab&#x2F;javascript&#x2F;checkbox_painter&#x2F;</a>
评论 #31370042 未加载
afry1about 3 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.<p>Well done.
Marazanabout 3 years ago
<a href="https:&#x2F;&#x2F;tixy.land&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tixy.land&#x2F;</a> seems to be the inspiration?
评论 #31374195 未加载
评论 #31371764 未加载
russellbeattieabout 3 years ago
Fun and simple, nice. I&#x27;d love to see the raw values presented using something like dat.gui, as well as basic play&#x2F;pause&#x2F;step controls.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;dataarts&#x2F;dat.gui" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dataarts&#x2F;dat.gui</a><p>You can see how it&#x27;s used in this codepen:<p><a href="https:&#x2F;&#x2F;codepen.io&#x2F;russellbeattie&#x2F;pen&#x2F;kGxaqM" rel="nofollow">https:&#x2F;&#x2F;codepen.io&#x2F;russellbeattie&#x2F;pen&#x2F;kGxaqM</a>
brundolfabout 3 years ago
It&#x27;s like a minimalist version of Shadertoy (<a href="https:&#x2F;&#x2F;www.shadertoy.com" rel="nofollow">https:&#x2F;&#x2F;www.shadertoy.com</a>). Fun idea
PaulHouleabout 3 years ago
It&#x27;s like a 1-d pixel shader!
Squarexabout 3 years ago
Nice reference to the Slint&#x27;s Spiderland.
chaosprintabout 3 years ago
This is really cool. Is the music video related to the slider or it&#x27;s just visualization? Would be cool to convert the func into sound like this:<p><a href="https:&#x2F;&#x2F;glicol.org&#x2F;tour#meta1" rel="nofollow">https:&#x2F;&#x2F;glicol.org&#x2F;tour#meta1</a><p>Will look into the source code tomorrow.
justinsaccountabout 3 years ago
<a href="https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#sin%28t%2Bx%29*0.5%2B0.5" rel="nofollow">https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#sin%28t%2Bx%29*0.5%2B0.5</a> is very relaxing
评论 #31372448 未加载
dillondoyleabout 3 years ago
So cool. I like how didn&#x27;t try to style slider input, it&#x27;s hellish to get it to look nice across browsers.
xhrpostabout 3 years ago
I really like these super simple but creative ideas. Lists.sh a few weeks ago landed there for me as well.
dylan604about 3 years ago
does the binary one going from left to right feel odd to anyone else?
评论 #31370560 未加载
brikellyabout 3 years ago
Guess the creator was a big Slint fan :)
sgtnoodleabout 3 years ago
log(t<i>x)&#x2F;2</i>sin(x*t)&#x2F;4+0.5<p>Has some pleasant aliasing effects.
cheesefaceabout 3 years ago
Oddly satisfying.
couchandabout 3 years ago
This is really neat! Also, please don&#x27;t hijack the back button if you&#x27;re not going to do anything useful with it!
评论 #31371753 未加载
aaronharnlyabout 3 years ago
No sandboxing, so this is easy enough to do too :)<p><a href="https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#document.body.style.backgroundColor%20%3D%20%28round%28t%29%20%25%202%20%3D%3D%3D%200%29%20%3F%20&#x27;red&#x27;%20%3A%20&#x27;white&#x27;" rel="nofollow">https:&#x2F;&#x2F;sliderland.blinry.org&#x2F;#document.body.style.backgroun...</a>
评论 #31373542 未加载
squarefootabout 3 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&#x27;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.
评论 #31371744 未加载
评论 #31371673 未加载
评论 #31371757 未加载