155 points by tikili 3 days ago | 33 comments
sota_pop 7 minutes ago
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!

chkas 6 hours ago
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...

chkas 6 hours ago
skygazer 5 hours ago
Well, that looks suspiciously like caustics in and around a swimming pool on a sunny day.
Root_Denied 2 hours ago
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 9 hours ago
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 3 hours ago
I like how some of the particles get thrown out of the cluster on wider elliptical orbits, they look like comets.
biomcgary 8 hours ago
Agglomerative clustering
nhecker 7 hours ago
I like this.
deskr 6 hours ago
[flagged]
IceDane 3 hours ago
You alright there, buddy? I think some grass touching might be in order.
taco_emoji 4 hours ago
c'mon, man
thih9 1 hour ago
Note, you can edit the code.

Here’s my version, with particles affecting each other: https://tiki.li/run/#cod=dVPbToNAEH3fr5jExLQacFH7UNP6Db43jaF...

Recursing 4 hours ago
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...

nayuki 28 minutes ago
christina97 8 hours 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.
duskwuff 4 hours ago
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 5 hours ago
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 3 hours ago
Rather like connections in life maybe.

All I see is blonde, redhead...

mjstone 10 hours ago
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 6 hours ago
This made me realize how much I miss screensavers. I used to sit and just stare at them meditatively as a teen.
grues-dinner 5 hours ago
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 4 hours ago
Also the cool effects in music players.
airstrike 9 hours ago
Made a version with charged particles. Probably bad physics all around, but here it is: https://shorturl.at/ocvEO
j1elo 2 hours ago
Funny how the "shortened" url is actually longer than the real url. Any reason you shared it using the former?
airstrike 2 hours ago
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 7 hours ago
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 3 hours ago
What? No bonding?
someoneontenet 10 hours ago
Neat, I’ve also made something like this with processing https://robw.fyi/constellation.html
hashishen 7 hours ago
this is great nice work
bouncybouncycat 9 hours 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.
devin 9 hours ago
rite* of passage
jhncls 7 hours ago
A "wright of passage", a "craftsperson of passage", someone who facilitates or creates transitions -- like a metaphorical bridge-builder
mystified5016 1 hour ago
Rite, as in the ritual one performs to pass to the next stage of their goal.
gus_massa 2 days ago
Nice. Have you tried a version where the particles have a small atraction/repulsion? (Bonus points for a bar to choose the force.) (1/r^2? can I choose the exponent?)
dylan604 10 hours ago
I was expecting a +/- charge interaction like this as well, but that was just based on my brain's default interpretation of the word particle in the title with this being HN and all. It took a second for my brain to switch to just a visual fx particle system use of the word.

Nonetheless, my default thoughts do not take away from it being a fun visual to zone out to for a bit

hnuser123456 10 hours ago
This is a very slippery slope towards making a full blown 3d three.js octree based n-body gravity simulation, at least for me :)
dylan604 10 hours ago
it doesn't have to be 3d though. another idea would be to assign mass values to the particles and see if after an amount of time if everything settles down to some sort of orbital track around each other. but either idea moves it from being a relaxing visual into a bit of sciencey simulator that totally changes to the scope of the project
65 8 hours ago
This would make the perfect hero background to my portfolio site!
greatNespresso 5 hours ago
Hypnotizing. Watching this with Beanie playing in the background. Mate that feels good
alentred 8 hours ago
That... is... mesmerizing... ... ... ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏

Thank you. I wonder if I could use it for meditation. If only it would not require a blue screen.

8 hours ago
idiotsecant 1 hour 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.

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?

Zaskoda 6 hours ago
This is a lot like how I imagine a mesh net with mobile nodes working.
ddawson 10 hours ago
I feel like that's what's happening to my neurons when I'm browsing Reddit. And Hacker News.
polishdude20 8 hours ago
I'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
grues-dinner 10 hours ago
Nice. Reminds me strongly of levitated.net (sadly broken due to no Flash) and complexification.net (sadly broken due to no Java).

Geeking out over Jared Tarbell over dial up basically got me into computers in the first place.

voiper1 8 hours ago
Cute. First thing I did though was to see if moving my mouse or clicking affected it. Doesn't seem to, please add that!
ausbah 6 hours 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
hotpocket777 6 hours ago
bitwize 3 hours ago
Neat!

I wrote a "game jam fail" game involving pulsating blue "cells" that cluster together and form attacking aliens:

https://github.com/bitwize/cosmic-sweep

junon 6 hours ago
Would love to see this with boids simulations :D
stackedinserter 9 hours ago
I can't relax, the fact that connections don't affect their speed/direction infuriates me.
stavros 7 hours ago
I didn't think I'd care, but I had the same reaction.
leeoniya 10 hours ago
there is a website on the internet that has this in the banner or background, but i cannot remember what it was.
deadbabe 10 hours ago
What if you incorporate game of life type rules into this?
justsomehnguy 10 hours ago
Need DVD version
Reimersholme 9 hours ago
[dead]
752963e64 9 hours ago
[dead]