Animation using primitives.

This little animation uses some basic techniques to make the ball appear more lifelike. When it hits the ground, it squashes; when it bounces back up, it stretches. There are also some little "ghost" after-images that follow it around from time to time.
Double-buffering is used to eliminate flicker. The whole scene is drawn using primitives making the applet load and run quickly.