2. It's written in a language most HNers are familiar with.
3. Doesn't require any special environment to watch or play with.
4. It's open source.
You keep track of each node's position, and its velocity. If connectedness is simulated as a force, it can be as simple as
1) Compute force {Fx,Fy} for each node, then integrate:
2) vx(t+dt) = vx(t) + (Fx/m) * dt
3) x(t+dt) = x(t) + vx(t+dt) * dt
If it is using constraints than the code is more complex though, but for this kind of simulation constraints are overshoot probably.
You can add gravity too, it can be a fun addition..
[1] "The Web (TM)" being just the right combination of operating system, specific browser version and graphic card.
1) They finally said "ok, you can just update pixels directly like a 1980s computer".
2) Computers are fast enough to run Javascript at decent frame rates now.
But for those of us whose days consist mostly of writing JavaScript, this is pretty cool. Stuff like this hasn't been possible until recently, and I would guess (anecdotally) that most of us don't have much experience with coding graphics/animation.
It's not that anyone thinks this is groundbreaking computer science. It's just introducing something interesting and fun to developers who might not have known this kind of thing was even possible.
I'm clearly not getting something with this submission.