Game Development Reference
In-Depth Information
The Paint Bucket Effect
In writing a comprehensive book like this, naturally I ran
into a few effects that I hadn't gotten familiar with yet. The
Paint Bucket effect was one such. I wasn't very excited about
studying it, either, because of the unimpressive fi ll effects like
Eyedropper Fill, and because of the appalling Paint Bucket tool
in Photoshop.
Well, I'm happy to report that, since then, the Paint Bucket
effect actually became one of my favorite discoveries. The Paint
Bucket effect allows you to paint different pieces of a layer. It also
allows you to add and adjust different types of strokes. It pre-
sumably gets its name from the common Paint Bucket tools in
Photoshop, and most other drawing and painting applications. In
most such programs, you click in an area, and it fi lls with a color.
The Paint Bucket effect has a similar end result, but a different
means to that end.
You'll probably want to follow me to get the hang of this effect.
To do that, open the Paint Bucket.aep project from the Chapter 9
folder of the exercise fi les. We'll start with the Paint Bucket Start
comp. Apply the Paint Bucket effect to the Arrows layer. Instantly,
the entire layer is fi lled with red. This happens for two reasons.
First, the Fill Selector drop down is set to Color & Alpha, which
means that the entire layer will fi ll up with a solid color (a.k.a.
the Eyedropper Fill effect). It also fi lls the screen because of the
nature of our art and the Tolerance value. Just like in Photoshop,
the Tolerance value controls the number of pixels allowed to be
painted. The default Tolerance value in this case must have been
enough to fi ll the layer. Finally, the Fill Point determines what
part of the layer is fi lled. As we'll see, the Fill Point value is a very
important here.
To really see what this effect can do, I'm going to put the Fill
Point over one of the arrows so it will fi ll with color. I used the
positions 197, 127. Next, I'll change the Fill Selector value to
Opacity, so that the Paint Bucket effect only fi lls opaque pixels.
Now, we can begin to see what happens (Fig. 9.35).
If you set the Fill Selector to Transparency, you can fi ll the
transparent pixels on the layer with color. You'll also need to move
the Fill Point to a transparent part of the layer. In the case of this
logo, the results are sharply different from the original (Fig. 9.36).
The Stroke parameter is another source for creative play
with the Paint Bucket effect. Once you change this value to any
other, the property immediately below it becomes adjustable. To
expand the effect beyond the opaque pixels, like increasing the
size of its outline, set this to Spread. To erode the edges away,
set the Stroke value to Choke. Or, set it to Stroke to create only a
stroke (with no fi ll).
Fixing Paint Bucket
Edges
If you zoom in to
areas fi lled with
the Paint Bucket
effect, you might notice
that some edges aren't
fi lled in properly. This is
because of the Tolerance
value. If you increase the
Tolerance value, more
pixels are fi lled. If the color
seems to be spilling over
the boundaries of the layer,
reduce the Tolerance value
to clean up those edges.
 
Search Nedrilad ::




Custom Search