Animation: The Flicker Problem
Let’s write a simple applet to create some animation.
How would we animate a simple bouncing ball?
If we use the metaphor of a movie, we can imagine the paint method rendering a scene in a single slice of time. Each call to the paint method therefore draws an individual ‘frame’ of our animation.