The animation loop (cont'd)
Then Listing 5 enters the animation loop:
- Where it calls the moveBall function once during each iteration.
The loop continues
to iterate, and
- The ball shown in Figure 1 continues to move
- Until the user presses the Esc key
- At which time the program
terminates.