DanielScully.co.uk

Web Design

Canvas Balls

You will require a HTML5 Canvas aware browser to view the simulation. At present (17/08/2010) Opera 10.6, Firefox 3.6 and Chrome 6.0 will all work on this webpage.

Click to run the simulation
Sorry. Your browser does not support canvas. Try downloading one which does, for example: Opera.
ParticlePositionVelocityAcceleration
0
1
2
3
4

The Simulation

The simulation is based on the following rules:

At present you can get some pretty fast-moving balls, since I don't check for the balls being created on top of each other. I plan to add this in the future, along with collision detection. For now collisions won't occur too often since the coupling constant has been made fairly large.