|
|
|
|||
|
Performing AnimationWhat all forms of animation have in common is that they create some kind of perceived motion by showing successive frames at a relatively high speed. Computer animation usually shows 10-20 frames per second. By comparison, traditional hand-drawn animation uses anywhere from 8 frames per second (for poor quality animation) to 12 frames per second (for standard animation) to 24 frames per second (for short bursts of smooth, realistic motion). The next few pages tell you everything you need to know to write a Java program that performs animation.
Creating an Animation Loop with TimerThe most important step in creating a program that animates is to set up the framework correctly. Except for animation performed only in direct response to external events (such as the user dragging an onscreen object), a program that performs animation needs an animation loop. Moving an Image Across the ScreenThe simplest form of image animation involves moving an unchanging image across the screen. In the traditional animation world, this is known as cutout animation, since it's generally accomplished by cutting a shape out of paper and moving the shape in front of the camera. Displaying a Sequence of ImagesThis section tells you how to perform classic, cartoon-style animation, given a sequence of images. Improving the Appearance and Performance of Image Animation
This section tells you how to use the
| |||
|