Putting Gradients to Work
In "Creating New Gradients" earlier in this chapter, you learned how to create color blends. Flash treats gradients just like any other fill. You use the paint-bucket tool to fill outline shapes with a gradient and the brush tool to create freeform swashes of gradient color.
To fill a shape (or replace a solid fill) with a gradient:
- In the Toolbar, select the paint-bucket icon.
In the Color Mixer panel, define a new gradient.
Figure 3.94 You can use the paint-bucket tool to apply a linear-gradient fill.
Figure 3.95 The paint-bucket tool can also apply a radial-gradient fill.
Click the paint bucket's hot spot (the tip of the drip of paint) somewhere inside the outline shape or within the existing fill.
The shape fills with the gradient currently displayed in the fill-color boxes.
To paint with an unlocked gradient:
- In the Toolbar, select the brush tool.
- Make sure that the Lock Fill modifier is deselected (Figure 3.96).
Figure 3.96 Deselect the Lock Fill modifier to paint with an unlocked gradient.
- Using one of the methods described in the preceding exercises, choose a gradient.
Paint with the brush as described in Chapter 2.
Flash cannot preview the shape you paint with the gradient you chose, as it can do with solid-color fills. The preview shape has a black-and-white pattern.
When you finish your brush stroke, release the mouse button.
Flash redraws the painted shape, using the gradient currently selected in the fill-color box. Flash fills the shape's bounding box (an invisible rectangle that's just the right size to enclose the shape) with the gradient. The painted shape reveals portions of that gradient pattern (Figure 3.97 and Figure 3.98).
Figure 3.97 A painted shape with a linear-gradient fill.
Figure 3.98 A painted shape with a radial-gradient fill.