Relax while watching bouncing particles making connections when they get closer
59 comments
·January 6, 2025chkas
Hello author here. I'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.
https://tiki.li/run/#cod=dVLNbsIwDL7nKT5p0gRDdEGMA9PYM+yO0FT...
skygazer
Well, that looks suspiciously like caustics in and around a swimming pool on a sunny day.
Root_Denied
How hard would it be to push this into 3 dimensions instead of 2? It made me think of a starting point for a model of the universe and galaxy interactions.
kaeruct
I'd like to share mine as well. There's a bit of more interaction between particles but I don't remember the exact logic. Code should be easy to read: https://kaeruct.github.io/projects/short-experiments/dots/
ides_dev
I like how some of the particles get thrown out of the cluster on wider elliptical orbits, they look like comets.
biomcgary
Agglomerative clustering
nhecker
I like this.
deskr
[flagged]
IceDane
You alright there, buddy? I think some grass touching might be in order.
taco_emoji
c'mon, man
Recursing
See https://bleuje.com/animationsite/2024_1/ for a collection of programmatic black and white animations made with https://processing.org/
He publishes the source code on https://github.com/Bleuje/processing-animations-code/tree/ma...
thih9
Note, you can edit the code.
Here’s my version, with particles affecting each other: https://tiki.li/run/#cod=dVPbToNAEH3fr5jExLQacFH7UNP6Db43jaF...
nayuki
My independent implementation: https://www.nayuki.io/page/animated-floating-graph-nodes
christina97
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.
duskwuff
It's still extremely common in web site templates for cryptocurrency and AI companies. Sure, it's cliché as all hell, but that doesn't stop people from using it.
tempestn
Anyone else'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.
dotancohen
Rather like connections in life maybe.
All I see is blonde, redhead...
mjstone
Reminds me of the Ex Machina end credits [1] (and the Android live wallpaper I made as a homage to it [2].)
[1] https://www.youtube.com/watch?v=uRJ-fPAO3Go [2] https://play.google.com/store/apps/details?id=com.figmentano...
youainti
This made me realize how much I miss screensavers. I used to sit and just stare at them meditatively as a teen.
grues-dinner
I think I learned more about chaos theory by hacking a first person Rössler attractor "rider" into xscreensaver (instead of the usual Lorenz attractor) than by any other thing.
ykonstant
Also the cool effects in music players.
airstrike
Made a version with charged particles. Probably bad physics all around, but here it is: https://shorturl.at/ocvEO
j1elo
Funny how the "shortened" url is actually longer than the real url. Any reason you shared it using the former?
airstrike
You mean shorter than `https://tiki.li/run/`? That one only works after the real URL is loaded at least once. The un-shortened URL was huge as it contains the whole app in base64 encoding or some such
https://tiki.li/run/#cod=pVVLj9s2EL7zVwxgoLCzXa20yTbeIJtD2h4...
BlueTemplar
It doesn't take much to get decent physics :
https://mattermodeling.stackexchange.com/questions/9541/lenn...
https://en.m.wikipedia.org/wiki/Lennard-Jones_potential
With the right parameters you get to see the solid and fluid phases of matter !
dtgriscom
What? No bonding?
someoneontenet
Neat, I’ve also made something like this with processing https://robw.fyi/constellation.html
hashishen
this is great nice work
This reminds me of the header on the home page of one of my favorite network theory books:
https://networksciencebook.com/
The version in the banner is interactive with your cursor!