Will dig deeper into animation.

Will use a simple example of a ball bouncing around inside a box as shown in Figure 1.

The ball continues to bounce until the user presses the Esc key, at which time the program terminates.

Figure 1. Screen shot of output from BouncingBallInBox.