Photoshop CS2 Bible

Drawing Shapes

Photoshop provides six shape tools that enable you to draw geometric and predefined shapes. By default, the shapes are separated off into independent shape layers , which are a mix of objects and pixels. The vector-based outlines of the shapes print at the maximum resolution of your printer, but the interiors may consist of solid colors, gradients, or pixel-based patterns and images.

The pros and cons of shapes

What good are object-oriented shapes inside Photoshop?

If vectors are so great, why not forsake pixels and start drawing entirely with shape layers instead? Although a shape can clip a continuous-tone photograph, it can't replace one. There have been all kinds of experiments using objects and fractals, but pixels are still the most viable medium for representing digital photographs. Because Photoshop's primary job is photo editing, pixels are (for the foreseeable future) the program's primary commodity.

Caution  

One downside to shape layers is compatibility. Photoshop stretches the TIFF and PDF formats to accommodate any kind of layer ” shape layers included ” but other programs may have no idea what Photoshop is doing. Of all the formats, PDF is the most likely to work with other programs. Be sure to print and proof the document before taking it to a commercial printer. With Photoshop objects, you're working on the bleeding edge, so be prepared for the consequences.

The shape tools

Clicking the rectangle tool displays a flyout menu of six shape tools, pictured in Figure 7-1. You can also press U to select the rectangle tool, and then press Shift+U to switch from one shape tool to the next . The six shape tools work as follows :

Figure 7-1: Click the rectangle tool to display the shape tool's flyout menu, or press U and Shift+U to switch between tools.

The shape drawing process

The act of drawing a shape can be as simple as dragging with a tool. How that shape manifests itself, however, depends primarily on which of the first three buttons labeled in Figure 7-2's Options bar you click. The first option (Shape Layer) creates a new shape layer when you draw with a shape tool; the second option(Paths) creates a conventional path, available for inspection in the Paths palette; and the final option (Fill Pixels) creates a pixel-based shape. In this last case, Photoshop doesn't add a new layer: it merely recolors the pixels on the active layer, typically within a selection. In fact, before the Shape tool was added to Photoshop, this was how rectangles and ellipses were created ” with the Marquee tool and the Fill command or Paint Bucket.

Figure 7-2: Use the options in the Options bar to specify the kind of shape you want to draw.

And that's just the beginning. Photoshop offers the aspiring shape artist a wealth of additional controls. Just for the record, here's the in-depth way to approach the process of drawing a shape layer.

STEPS: Creating a New Shape Layer

  1. Select the shape tool you want to use. Remember, U is the keyboard shortcut for the shape tools.

  2. Specify the color. Select a color for the shape from the Color palette. Alternatively, you can click either the Foreground color icon in the Toolbox or the color swatch in the Options bar, and then select a color from the Color Picker. If you want to fill the shape with a gradient, pattern, or image, you can do that after you finish drawing the shape, as discussed in the upcoming section "Editing the stuff inside the shape."

  3. Specify how you want to draw the shape. Pictured in Figure 7-2, the first three buttons in the Options bar determine what the shape tool draws. Because we're creating a shape layer, you'll want to make sure the first button is selected.

  4. Modify the geometry options. Click the down-pointing arrowhead to the right of the tool buttons in the Options bar (labeled "Custom shape options" in Figure 7-2) to see a pop-up palette of options geared to the selected shape tool. These enable you to constrain rectangles, ellipses, and custom shapes; indent the sides of a polygon to create a star; round off the corners of a polygon or star; and add arrowheads to the ends of a line.

    Most of the geometry options are self-evident, but a few are tricky. When using the polygon tool, turn on the Star option to draw a star, and then use Indent Sides By to determine the angle of the spikes. Higher percentages mean sharper spikes. You can also round off the outside corners of a star or polygon or the inside corners of a star.

    When adding arrowheads to a line, the Width and Height values are measured relative to the line weight. A positive Concavity value bends the base of the arrowhead in; a negative value bends it out.

    Tip  

    The most unusual option is Snap to Pixels, which is associated with the two rectangle tools. Object-oriented shapes don't have any resolution, so their sides and corners can land in the middle of pixels. To prevent potential anti-aliasing in rectangles, select the Snap to Pixels check box to precisely align them with the pixels in the image.

  5. Modify other tool-specific settings. Depending on the tool, you may see options to the right of the geometry options arrowhead. The Polygon tool offers a Sides option; the Line tool offers a Weight option. You can edit either by pressing the bracket keys, [ and ].

    When drawing a custom shape, click the button to the right of the word "Shape" to display a pop-up palette of presets, as shown in Figure 7-2. Press the square brackets ( [ or ] ) to cycle from one preset shape to another. You can load more shapes by choosing the Load Shapes command or by choosing one of the shape libraries ” Animals, Arrows, Banners, and so forth ” listed in the lower half of the menu.

    Tip  

    To load all custom shapes that ship with Photoshop, choose the All command. When Photoshop asks you if you want to replace the current shapes with the new ones, click OK.

  6. Apply style and color. Unlike the other options discussed so far, you can assign a layer style or color to a shape either before you draw it or afterward. The key is the Link icon, labeled "Change active layer" in Figure 7-2. When turned on, the style and color options affect the active shape layer; when turned off, they affect the next shape you draw.

    Tip  

    The Style pop-up palette offers the very same presets available from the Styles palette, which are covered in the "Saving effects as styles" section at the end of this chapter. To cycle from one preset to another, press the comma (,) or period (.) key ” the former selects the previous style and the latter selects the next. Shift+comma selects the first style; Shift+period selects the last style.

  7. Draw the shape. Because you set the tool to draw a shape layer in Step 3, Photoshop automatically creates a new layer. As shown in Figure 7-3, the Layers palette shows a colored fill (labeled "Layer contents" in the figure) with a clipping path ” or vector mask, in Photoshop parlance ” to the right of it, masking the fill. If you assigned a layer style, you'll see a florin icon(a cursive f) on the layer, and if you click the tiny triangle to the right of that (making the triangle point up instead of down), the list of styles displays under the layer.

    Figure 7-3: A shape layer is actually a vector mask that masks a color, gradient, pattern, or other fill directly inside Photoshop.

  8. Switch tools and draw more shapes. By default, Photoshop creates a new shape layer for each new shape that you draw. If you prefer to keep adding paths to an active shape layer so that all shapes share the same fill, click the Add to Shape Area button in the Options bar. (It's labeled in Figure 7-4.) Then draw a new shape.

    Figure 7-4: The five compound path buttons control the interaction of compound paths. The last four are available only when editing or adding to an existing shape layer.

    Tip  

    If you hit the Enter, Return, or Escape key, the current shape layer is deactivated, and you can no longer add shapes to that layer. This change is visible in the Layers palette; notice that the vector mask thumbnail no longer has a selection border around it. To reactivate the layer, simply click the thumbnail.

That's it. You now have one or more shape layers that you can use as you please . From this point on, it's a matter of editing the shape, as explained in the following sections.

Combining and editing shapes

If you're still giddy with excitement after Chapter 3's discussion of the History palette, and the nearly paradoxical time-traveling permutations it provides, hold onto your hats. Shape layers are equally malleable.

When Photoshop says "shape layer," think "perpetually editable vector mask." And make no mistake ” there's a lot to be said for anything that provides that level of freedom. Don't like a segment? Change it. Don't like a point? Move it. Hate the entire shape? Delete it. Here's how:

Editing the stuff inside the shape

What kind of a tool would Photoshop be if it didn't provide you with a plethora of possible methods for manipulating shape layers. The following are a just a few of the ways to modify the color and general appearance of shape layers:

In Figure 7-6, the vector mask thumbnail in the Layers palette is Ctrl-clicked ( z -clicked) to load the crown shape as a selection outline. Then the selection is converted to a layer mask by clicking the Add Layer Mask icon at the bottom of the Layers palette. The result is a layer mask that is identical to the vector mask. The question you're now probably asking is, "Why'd you do that?" "To set up the following figure" would be the answer. In Figure 7-7, Filter Blur Gaussian Blur is applied to feather the layer mask. Then Filter Pixelate Crystallize is applied to add mosaic edges. The result is organic, rippling edges along the inside of a sharp vector shape. The layer mask masks the layer, and then the vector mask masks that.

Figure 7-6: Add a layer mask to a shape layer to add pixel-based softening to the razor-sharp vector mask.

Figure 7-7: Applying the Gaussian Blur (left) and Crystallize filters to the layer mask mixes a soft pixellated effect with the hard edges provided by the vector mask (right).

The Gaussian Blur command is explained in Chapter 8. For more information on Crystallize, see Chapter 9.

Категории