Home    >    Tutorials    >    Rainbow Animation
Download this tutorialDownload (230kb)
E-mail this tutorial to a friendEmail to Friend

Rainbow Animation
Created by: Doro Sensen

With the new multiple gradients of PSP 6 and Animation Shop, you can create great rainbow animations!
Open a new image:
– Width = 300
– Height = 100
– Background = transparent
– Image type = 16.7 Million Colors
Click on the Flood-Fill tool in your tool palette. On tab 1 of the Tool Options palette, choose:
– Fill style = Linear Gradient
– Blend mode = Normal
– Paper texture = None
– Match mode = none
– Opacity = 100
– Sample merged = unchecked.
First, we have to create our rainbow gradients, so click on the "Edit" button on tab 2 of the Flood-Fill Tool Options palette to open the Gradient Editor dialog box.

Click on the button "New...", type "Rainbow_red" into the text field and click on OK. This will be our rainbow beginning with the colour red. Click on the first marker at 0%, then on the Custom colour field and choose a red (Red = 192, Green = 0, Blue = 0), then do the same with the second marker at 100%. You should now have a totally red "gradient".

Now click between these two markers under the gradient bar to create a third marker, and drag it to Location = 17%. In the Custom colour field, choose an orange (Red = 255, Green = 61, Blue = 1). Click again for a marker at Location = 33%, Custom colour yellow (Red = 255, Green = 255, Blue = 64).
Continue like that for green (Red = 0, Green = 128, Blue = 0) at 50%, blue (Red = 0, Green = 0, Blue = 192) at 67%, and violet (Red = 128, Green = 0, Blue = 128) at 83%. You should now have a full rainbow gradient, beginning and ending with red.










Click on the "Copy" button, type "Rainbow_orange" into the text field and click on OK. Now drag the first, red marker downwards, away from the gradient bar to remove it. Drag the orange marker from location 17% to 0%, the yellow marker from 33% to 17%, the green one from 50% to 33%, the blue one from 67% to 50%, the violet one from 83% to 67%, and the red marker from 100% to 83%. Now click once on the first, orange marker and then at 100% under the gradient bar to insert a second orange marker at the end of the row. Now you've got a full rainbow gradient beginning and ending with orange.

Click again on the "Copy" button, now for the "Rainbow_yellow" gradient, and edit it the same way as the gradient before. Do the same for a "Rainbow_green", "Rainbow_blue", and "Rainbow_violet" gradient. In the end, you should have 6 rainbow gradients like the ones on the left (without the location numbers, of course, which were added for your convenience).

Now that we have our rainbow gradients, we can create the image that we want to fill with them.

Click on the Text tool in your tool palette and then somewhere in the center of your image:
– Fonts: Name = Impact, Size = 72
– Text effects: a dark blue, bold and centered
– Create As: Vector = selected, Antialias = unchecked
(because we want to make a transparent animated gif of it).
Enter "PSPUG" and drag the text into the center of your image.
Now click on the Vector Object Selection tool in your tool palette, right-click somewhere into your image and choose Convert Text to Curves || As Single Shape from the context menu; right-click again and choose "Properties" from the context menu:
– Style = Stroked & Filled
– Line Style: Width = 3, leave Color as is
– Fill Style: Color = white
Deselect with Ctrl+D (Selections || Select None), right-click on the vector layer in your layer palette and choose "Convert to Raster Layer" from the context menu. Go to Edit || Copy (Ctrl+C) and then to Edit || Paste || As a New Image (Ctrl+V); this way your image is just as big as you need it.
Click on the Magic Wand tool in your tool palette:
– Match mode = RGB
– Tolerance = 0
– Feather = 0
– Sample merged = unchecked

Now click into the white area of a letter, then go to Selections || Modify || Select Similar to select all the white areas in your image. Save this selection to an alpha channel: Go to Selections || Save To Alpha Channel, and click on OK in both the "Save To Alpha" and the "New Channel" dialog box; you can now open that selection again whenever you need it. Deselect by right-clicking into your image.

Now click on the blue outline area of one of your letters and again go to Selections || Modify || Select Similar so that now all the blue outlines are selected. Go to Image || Effects || Inner Bevel:
– Bevel = the round one, Width=1
– Image: Smoothness=2, Depth=1, Ambience=0, Shininess=15
– Light: Color = white, Angle = 315, Intensity = 50, Elevation = 30
Deselect by right-clicking into your image and click on the Flood-Fill tool in your tool palette. On tab 2 of the Tool Options palette, choose:
– Gradient type = Rainbow_red
– Angle = 90
– Repeats = 0
Go to Selections || Load from Alpha Channel and click on OK in the "Load from Alpha" dialog box; all the white is now selected. Click into the selection to flood-fill with your rainbow gradient.
Now go to Image || Effects || Inner Bevel again; change Width to 4, Smoothness to 15, Depth to 5, leave the other settings as they are. Deselect with Ctrl+D (Selections || Select None) and save your image as "Rainbow_red.psp".
Duplicate your image with Shift+D (Window || Duplicate ), load your selection from alpha channel (Selections || Load from Alpha Channel) and flood-fill with the "Rainbow_orange" gradient. Apply the inner bevel effect with the same settings as before, deselect and save as "Rainbow_orange.psp".

Do the same for "Rainbow_yellow.psp", "Rainbow_green.psp", "Rainbow_blue.psp" and "Rainbow_violet.psp". You've now got the six images that you need for your animation.

Now go to File || Run Animation Shop to make an animation out of your images. In Animation Shop, go to File || Animation Wizard; first dialog box, choose "Same size as the first image frame", click on "Next". Second dialog box, choose "Transparent", and click on "Next". Third dialog box, choose "Centered in the frame" and "With the canvas color", click on "Next". Fourth dialog box, choose "Yes, repeat the animation indefinitely", type "15" into the display time edit box, and click on "Next".
In the fifth dialog box, we have to specify the pictures that belong to the animation. Click on "Add Image", and select the six rainbow images to add them to the dialog box. They're probably not in the right order; we want to begin the animation with "Rainbow_red", so select that file and click on the "Move Up" button until it's the first file in the row.

Since we want the red to move to the right, we now have to think backwards; move "Rainbow_violet" up till it's beneath the red, followed by the blue, green, yellow and orange rainbow files.

In the final dialog box, just click on "Finish"; your animation is now displayed for viewing and further editing.
With this technique, you've got numerous possibilities, for of course the gradients don't have to be linear or rainbow gradients, and the pictures can be anything, not necessarily text ...

Happy gradient animating! :-))