Balls 3: Electric Blue

Max Ball Size

An extension of the eariler ball <canvas> experiment. This time focusing on interactivity and some trig functions. Where are my 11th grade Math books when I need them?

Click to release a cluster of 10 balls with random orbits. Control the ball max size with the slider below. The slider is rendered in webkit browsers only, sorry no Firefox for this one. FF users can type in a value, and I would recommend staying below 30. At the smallest size its almost like a galaxy builder.

I’m pushing for 60fps on this one, but I can only get 45 or so. You super-computer users might get higher. [interesting side note 2014 update: Chrome now shows 55-60fps with 100ish balls. Progress!]

Comments