Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Creating the Pictures You Want to Animate

The first step in creating a GIF animation is to create a series of images to be displayed one after the other. Each of these images is called a frame. (By the way, this use of the word frame has nothing whatsoever to do with the frames you learn about in Hour 21, "Multipage Layout with Frames." ) You can use any graphics software you like to make the images, although Paint Shop Pro is an obvious choice if you plan on using Animation Shop to put the animation together.

Figure 12.1 shows three pictures I drew with Paint Shop Pro. In each picture, the icon of the man and the "NO" symbol around him are exactly identical, but the flames and smoke on his body are slightly different. When these three images are put together into an animation, the flames seem to flicker.

12fig01.jpg

Figure 12.1 Use Paint Shop Pro or any other graphics program to produce the individual frames of your animation.

If you know how to use Paint Shop Pro's (or any other advanced graphics software) Layers feature, you'll find that creating animation frames is easier because you can easily turn parts of a picture on and off to make variations or move layers to simulate motion. For example, I actually created one image with separate transparent layers for the man, the "NO" symbol, and the flame and smoke variations. I then used Edit, Copy Merged and Edit, Paste, As New Image to make the three individual images in Figure 12.1, with different opacity settings for each layer.

Don't fret, however, if all that layer manipulation is a bit beyond you at the moment. You can easily make very effective animations by copying an ordinary one-layer image and painting on some variations, or moving some parts of it around to make the next frame.

When you have your animation's individual frames ready, use Colors, Decrease Color Depth to limit them to 256 or 16 colors, and then save each of them as a separate GIF file. (Refer to Hour 9 for more detailed instructions if you need a refresher on creating and saving GIF files.)

Share ThisShare This

Informit Network