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.

Relax while watching bouncing particles making connections when they get closer

225 pointsby tikili5 months ago

35 comments

chkas5 months ago
Hello author here. I&#x27;m a little surprised to see this on the front page of Hacker News. This is just a simple demo for my educational programming language Easylang. You can easily edit the code and increase the particle count for example. In the IDE you can then create a link with the code embedded in the URL.<p><a href="https:&#x2F;&#x2F;tiki.li&#x2F;run&#x2F;#cod=dVLNbsIwDL7nKT5p0gRDdEGMA9PYM+yO0FTasoZBsqWlJG8&#x2F;O01EQSOHNP5+7NjNAz5y26riUDXiAUJ&#x2F;&#x2F;lCIFV6kFG1tq4bOswVT27z4&#x2F;rLmpEtIIgtzMBbL5ZK55rS1KIzWVdEKADW5Socn3iYoPZ88E6VqOHvzS0VqBtSux94QqjFE63Am0aivPw2CMZ4xl4lWujqrsq1JGKGj6So4+IECbr3fwNPGYCYyYTRyrY55WzFCPeeWDztqRHGfaA36CcQ0jlC3VpsYegr9JbypWShLKSGzeQQ47z7lVRGkVXLafNtgFG44hRtfSB6IuxlHtPlk873Nj694dvrkxOvwf&#x2F;QrE9dfMji8YyYl6KZcVJKt44ap0rQbdE5Sf5H6JPVJOphKsE9WGNp9wpKO&#x2F;8adsbv1Bo8r2FyX5rijl0NFRcjxP95Fw0hmCxpK5MN7CbS&#x2F;T2dCiD8=" rel="nofollow">https:&#x2F;&#x2F;tiki.li&#x2F;run&#x2F;#cod=dVLNbsIwDL7nKT5p0gRDdEGMA9PYM+yO0FT...</a>
评论 #42649407 未加载
评论 #42649095 未加载
评论 #42650852 未加载
评论 #42654162 未加载
kaeruct5 months ago
I&#x27;d like to share mine as well. There&#x27;s a bit of more interaction between particles but I don&#x27;t remember the exact logic. Code should be easy to read: <a href="https:&#x2F;&#x2F;kaeruct.github.io&#x2F;projects&#x2F;short-experiments&#x2F;dots&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kaeruct.github.io&#x2F;projects&#x2F;short-experiments&#x2F;dots&#x2F;</a>
评论 #42654321 未加载
评论 #42650240 未加载
评论 #42647982 未加载
评论 #42648334 未加载
评论 #42649187 未加载
bijection5 months ago
I built a similar thing that includes forces between particles meant to simulate a sort of fluid or, as you scroll down, a gelatinous solid. There’s a bit of free energy injected to keep things moving so it’s actually a very bad fluid sim, but I think that makes it a better interactive toy in exchange.<p>One of the fun parts of naively n^2 particle simulations is trying to find ways to reduce the algorithmic complexity of collision detection. I remember messing with sweep lines and similar, though I don’t remember what optimizations made it into the final code. [0]<p>[0] <a href="https:&#x2F;&#x2F;omrelli.ug" rel="nofollow">https:&#x2F;&#x2F;omrelli.ug</a>
评论 #42651888 未加载
Recursing5 months ago
See <a href="https:&#x2F;&#x2F;bleuje.com&#x2F;animationsite&#x2F;2024_1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bleuje.com&#x2F;animationsite&#x2F;2024_1&#x2F;</a> for a collection of programmatic black and white animations made with <a href="https:&#x2F;&#x2F;processing.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;processing.org&#x2F;</a><p>He publishes the source code on <a href="https:&#x2F;&#x2F;github.com&#x2F;Bleuje&#x2F;processing-animations-code&#x2F;tree&#x2F;main">https:&#x2F;&#x2F;github.com&#x2F;Bleuje&#x2F;processing-animations-code&#x2F;tree&#x2F;ma...</a>
评论 #42654675 未加载
thih95 months ago
Note, you can edit the code.<p>Here’s my version, with particles affecting each other: <a href="https:&#x2F;&#x2F;tiki.li&#x2F;run&#x2F;#cod=dVPbToNAEH3fr5jExLQacFH7UNP6Db43jaFA7WoBBYrM3zszu1sWrTzA7pwzc+bGFbykTWeyY9GqK1DV6yddYQ2PWnWHpmjpmCwY2aXZx1tTn6octNYqq491A8vlkrH2tGsgq6uqyDoFAAfyyge44dct5MgnZOBoSsPRdXy&#x2F;4HtJBKHeQaLZMIggn8xe0Gfn8+S4cgvwFURTQhQyho3ZEmXYvG+JIMGjxAojC+NZGKfCOBHGP8I4FcbfwmiF0QrjKJyblhvQflGXD44sthVIv9nEjfom0sxOIBLCnFJ90B42VfFt8u5ARGcq676AATBg2Lo5B2fMjnDrqqSnl+6QoZRZ6Tih9+Az6PGM4hlFQWMVq7qCtDJl2hVKAhdpw4c9LYXhTkJXg10mF49nw4Luyh3D8UqZ0VZcLiUzDcU&#x2F;p80S717COCM9Mv1018JMyo5gmAcgehAtiAEYbC5wdfbL60NbkGgNpMibpmmUtmk0zT4ohgc+UtFT0VODQn3PQ3ff6ZBHIaknK3gY0ySTVCCuc9LjmYwZ2S9Pin7Kv044dXK52e&#x2F;EKfYj&#x2F;meWw2YL12to0iqvyz35UtlKqrhs753DTMcLarzDZZ0Fxv&#x2F;hWCn1Aw==" rel="nofollow">https:&#x2F;&#x2F;tiki.li&#x2F;run&#x2F;#cod=dVPbToNAEH3fr5jExLQacFH7UNP6Db43jaF...</a>
评论 #42653714 未加载
christina975 months ago
Having a hero background that was a variation of this was really popular about 10 years ago or so. You’ll still find them on plenty of websites built around that time.
评论 #42649819 未加载
mjstone5 months ago
Reminds me of the Ex Machina end credits [1] (and the Android live wallpaper I made as a homage to it [2].)<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=uRJ-fPAO3Go" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=uRJ-fPAO3Go</a> [2] <a href="https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;details?id=com.figmentanova.wp2">https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;details?id=com.figmentano...</a>
tempestn5 months ago
Anyone else&#x27;s brain find this... I guess stressful, rather than relaxing? Something about them connecting but never hanging on, and the bits never all coming together, I think.
评论 #42650412 未加载
bouncybouncycat5 months ago
It seems to me that it is inevitable: every programmer goes through a phase where they do a bounded billiard ball simulation. It’s like a right of passage.
评论 #42647092 未加载
someoneontenet5 months ago
Neat, I’ve also made something like this with processing <a href="https:&#x2F;&#x2F;robw.fyi&#x2F;constellation.html" rel="nofollow">https:&#x2F;&#x2F;robw.fyi&#x2F;constellation.html</a>
评论 #42648543 未加载
airstrike5 months ago
Made a version with charged particles. Probably bad physics all around, but here it is: <a href="https:&#x2F;&#x2F;shorturl.at&#x2F;ocvEO" rel="nofollow">https:&#x2F;&#x2F;shorturl.at&#x2F;ocvEO</a>
评论 #42648336 未加载
评论 #42650919 未加载
评论 #42650305 未加载
youainti5 months ago
This made me realize how much I miss screensavers. I used to sit and just stare at them meditatively as a teen.
评论 #42649490 未加载
评论 #42649814 未加载
评论 #42654474 未加载
gus_massa5 months ago
Nice. Have you tried a version where the particles have a small atraction&#x2F;repulsion? (Bonus points for a bar to choose the force.) (1&#x2F;r^2? can I choose the exponent?)
评论 #42646521 未加载
评论 #42646472 未加载
sota_pop5 months ago
This reminds me of the header on the home page of one of my favorite network theory books:<p><a href="https:&#x2F;&#x2F;networksciencebook.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;networksciencebook.com&#x2F;</a><p>The version in the banner is interactive with your cursor!
idiotsecant5 months ago
As an aside, I described this to Claude and had it recreate it in javascript with some other features I wanted. It took me 30 seconds to write the prompt and it worked flawlessly.<p>Will anyone ever write fun things like this again once the machine can do it for you? How will young people ever get interested when the machine can do all the work for you?
chkas5 months ago
Another one - small colliding balls<p><a href="https:&#x2F;&#x2F;tiki.li&#x2F;run&#x2F;#cod=jVPBbtswDL3rKx5QYEgd2FWMDliWaIf+RpGDYzmFMkfa5MSQ&#x2F;r6gJNeO3QL1RSL5+B4p0g94MTddK&#x2F;2GY9W2HXsAs5WEAC9+MQ2Bn5yz7l&#x2F;TRN9zApQQIFyGkkxbyefoKZGFg3DHqv77Zs1NS3DO2clYKAhscDXQDIB7PeAHpWlpLidkWG04Rx4IHrGmk2D+e7B+QRfrzlAij&#x2F;cAW9AtYQWV392OFrVpWyUbSqQX6P7bK6Rz3gePw5OAxA7Sh1vgh8Cqd6&#x2F;qgJxqOh8ekRF0jVXvk9sP7sCjTuixB6d7pM0E+khLt+RPpIIAOyQukThi&#x2F;HzAeownK8QLVjCjUWl1qa6hn7ptKhsupjUWZVmScTF9Ax5raZVuQG99b234aM8tPhJut1sylmMfVEI71EVy1srWbTOMM+yHCh2ExpPPD74hsfhSxEFEih08xFSJ4GcIKKzvU+IwqmOHlUOOOL19XOxKyxjxyOEnkTE3Dk9gyL2PhCJS7izHeQrS4OOm0ODHwX4UFoFBNfxyv6f7Gb+C3Z&#x2F;qBIc&#x2F;+PhjRmRcJ4Gcmpo+cdOGpP3n8Dl6IuS&#x2F;EPJTIT8T8gshPxHyMyFaY8beAQ==" rel="nofollow">https:&#x2F;&#x2F;tiki.li&#x2F;run&#x2F;#cod=jVPBbtswDL3rKx5QYEgd2FWMDliWaIf+RpG...</a>
Art96815 months ago
Neat. This is a popular visualization. It&#x27;s been the ParticlesJS demo for quite some time now:<p><a href="https:&#x2F;&#x2F;vincentgarreau.com&#x2F;particles.js&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vincentgarreau.com&#x2F;particles.js&#x2F;</a><p>There are many like it, but this one is yours and its pretty cool.
sadeshmukh4 months ago
I decided to try making one myself and spent absolutely way too long on it: <a href="https:&#x2F;&#x2F;particles.halceon.xyz" rel="nofollow">https:&#x2F;&#x2F;particles.halceon.xyz</a>
655 months ago
This would make the perfect hero background to my portfolio site!
alentred5 months ago
That... is... mesmerizing... ... ... ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏<p>Thank you. I wonder if I could use it for meditation. If only it would not require a blue screen.
ddawson5 months ago
I feel like that&#x27;s what&#x27;s happening to my neurons when I&#x27;m browsing Reddit. And Hacker News.
bitwize5 months ago
Neat!<p>I wrote a &quot;game jam fail&quot; game involving pulsating blue &quot;cells&quot; that cluster together and form attacking aliens:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bitwize&#x2F;cosmic-sweep">https:&#x2F;&#x2F;github.com&#x2F;bitwize&#x2F;cosmic-sweep</a>
greatNespresso5 months ago
Hypnotizing. Watching this with Beanie playing in the background. Mate that feels good
nayuki5 months ago
My independent implementation: <a href="https:&#x2F;&#x2F;www.nayuki.io&#x2F;page&#x2F;animated-floating-graph-nodes" rel="nofollow">https:&#x2F;&#x2F;www.nayuki.io&#x2F;page&#x2F;animated-floating-graph-nodes</a>
grues-dinner5 months ago
Nice. Reminds me strongly of levitated.net (sadly broken due to no Flash) and complexification.net (sadly broken due to no Java).<p>Geeking out over Jared Tarbell over dial up basically got me into computers in the first place.
polishdude205 months ago
I&#x27;d love to see the connection line come from both particles and join between them! Ooo and also if they can like start with random colors and slowly as they meet their colors average out
Zaskoda5 months ago
This is a lot like how I imagine a mesh net with mobile nodes working.
stackedinserter5 months ago
I can&#x27;t relax, the fact that connections don&#x27;t affect their speed&#x2F;direction infuriates me.
评论 #42648596 未加载
voiper15 months ago
Cute. First thing I did though was to see if moving my mouse or clicking affected it. Doesn&#x27;t seem to, please add that!
dbajaj4 months ago
Do they attract to each other and over time gravitate towards the center?
ausbah5 months ago
curious what do ppl usually use to make these animations? i’ve used pillow with python in the pass but that only really works with images and seems clunky
评论 #42649174 未加载
deadbabe5 months ago
What if you incorporate game of life type rules into this?
junon5 months ago
Would love to see this with boids simulations :D
leeoniya5 months ago
there is a website on the internet that has this in the banner or background, but i cannot remember what it was.
justsomehnguy5 months ago
Need DVD version