3 ms·
Canvas Experiment with Code: Particles Web Matrix
- drkevorkian 14y agoAs I left it going the particles seemed to be accelerating. I think this is because the acceleration term is proportional to the distance, rather than the usual 1/(distance)^2
- kushsolitary 14y agoTake a look at the code again, specially lines 180 - 188. You'll see that the velocity is varying proportional to the distance, not the acceleration.
- deleted 14y ago[deleted]
- 6ren 14y agomuch faster in chrome than FF
- rorrr 14y agoThis is so trivial. Why is it on the front page?
- baq 14y agoall those triangles look kinda cool. i guess.
- ehsanu1 14y agoHad some fun messing with the variables for number of particles, acceleration and other things. There are some interesting patterns (kinda like interference patterns) if you make the acceleration large (change the denominator from 2000 to around 10). The code itself isn't that interesting, except to the extent that modern JS engines can keep up with a brute force update of 200x200 particles at almost 60fps.
- fredley 14y agoWasn't this idea the basis for the spoof MMO Asteroids earlier this year? http://seb.ly/2012/04/gotcha-fake-mmo-asteroids-april-fool/ http://seb.ly/2012/04/gotcha-fake-mmo-asteroids-april-fool/