Bouncing Balls
(MIT 6.001 sample applet, April, '97)
After clicking on the image:
Type 'f' and then each mouse click on the image will generate a Fixed yellow
ball.
Type 'm' and each mouse click on the image generates a Moving blue
ball.
Type 'a' and each mouse click on the image generates an Accelerating ball
-- initially a green moving ball which turns red after half a minute and
comes under the downward pull of gravity.
Type 'z' to remove (Zero out) all balls.
Type 's' to Suspend the display.
Type 'r' to Resume the display.
To restart with random initial balls, refresh the page.
The sources:
Balls,
Simulation,
Thing,
MovableThing,
AccelerableThing.