This applet simulates bouncing balls in a box.
Click to throw a new ball in the box.
Click to clear all balls from the box.
Click to set the color of the ball that will be thrown in the next time.
Drag to modify the gravity in the box.
Drag to modify the restitution of the walls.