Saturday 10 September 2011

Photoshop Shapes And Shape Layers Essentials


In this tutorial, we'll learn the essentials of working with shapes and Shape layers in Photoshop! We'll start by learning how to use the five geometric shape tools - the Rectangle Tool, the Rounded Rectangle Tool, the Ellipse Tool, the Polygon Tool, and theLine Tool. Then, in the next tutorial, we'll learn how to add more complex shapes to our documents with Photoshop's Custom Shape Tool.
Most people think of Photoshop as a photo editing program, and if you were to ask someone to recommend a good drawing program, Adobe Illustrator would usually be at the top of their list. It's true that Illustrator's drawing and illustration features are far beyond Photoshop's, but Photoshop has more drawing ability than you might expect for a pixel-based image editor, thanks in large part to its Shape tools and Shape layers which make it easy to add simple vector-based graphics and shapes to our designs and layouts.
New! Download our Photoshop tutorials as convenient, print-ready PDFs!

The Shape Tools

Photoshop gives us six Shape tools to choose from - the Rectangle Tool, the Rounded Rectangle Tool, the Ellipse Tool, the Polygon Tool, the Line Tool, and the Custom Shape Tool, and they're all nested together in the same spot in the Tools panel. By default, the Rectangle Tool is the one that's visible in the Tools panel, but if we click on the tool's icon and hold our mouse button down for a second or two, a fly-out menu appears showing us the other Shape tools we can choose from:
The Shape tools in Photoshop. Image © 2011 Photoshop Essentials.com
All six Shape tools are located in the same spot in the Tools panel.
Once you have a Shape tool selected, if you need to switch to a different one, there's no need to go back to the Tools panel (although you can if you want to) because Photoshop gives us access to all of the Shape tools directly from the Options Bar along the top of the screen. For example, I'll select the Rectangle Tool from the Tools panel:
Selecting the Rectangle Tool in Photoshop. Image © 2011 Photoshop Essentials.com
Selecting the Rectangle Tool.
With the Rectangle Tool selected, a row of six icons appears in the Options Bar, with each icon representing a different Shape tool. The tools are listed from left to right in the same order they appear in the Tools panel, so again we have the Rectangle Tool, the Rounded Rectangle Tool, the Ellipse Tool, the Polygon Tool, the Line Tool, and the Custom Shape Tool. Simply click on one of the icons to choose the tool you need:
The Shape tool options in the Options Bar. Image © 2011 Photoshop Essentials.com
All six Shape tools can be selected directly from the Options Bar (after one of them is first selected from the Tools panel).

The Shape Layers Option

Before we start drawing any shapes, we first need to tell Photoshop which type of shape we want to draw, and by that, I don't mean rectangles or circles. Photoshop actually lets us draw three very different kinds of shapes - vector shapespaths, or pixel-based shapes. We'll look more closely at the differences between the three and why you'd want to use each one in another tutorial, but in most cases, you'll want to be drawing vector shapes, which are the same types of shapes we'd be drawing in a program like Illustrator. Unlike pixels, vector shapes are resolution-independent and fully scalable, which means we can make them as big as we like and resize them as often as we like without any loss of image quality. The edges of vector shapes will always remain crisp and sharp, both on the screen and when we go to print them.
To draw vector shapes, select the Shape Layers option in the Options Bar. It's the first of three icons near the far left (the Paths option is the middle of the three icons followed by the Fill Pixels option on the right):
Selecting the Shape layers option in the Options Bar in Photoshop. Image © 2011 Photoshop Essentials.com
Select the Shape Layers option to draw vector shapes.

Choosing A Color For The Shape

With the Shape Layers option selected, the next thing we need to do is choose a color for our shape, and we do that by clicking on the color swatch to the right of the word Color in the Options Bar:
Selecting a color for the shape in Photoshop. Image © 2011 Photoshop Essentials.com
Click on the color swatch to choose a color for the shape.
Photoshop will pop open the Color Picker where we can choose the color we want to use. I'll choose red. Click OK once you've chosen a color to close out of the Color Picker:
The Color Picker in Photoshop. Image © 2011 Photoshop Essentials.com
Choose a color for your shape from the Color Picker.
Don't worry about choosing the wrong color for your shape if you're not sure which color you'll need. As we'll see, Shape layers make it easy to go back and change the color of a shape at any time after we've drawn it.

The Rectangle Tool

As you can probably guess from its name, Photoshop's Rectangle Tool lets us draw four-sided rectangular shapes. Simply click in the document to set the starting point for your shape, then keep your mouse button held down and drag diagonally to draw the rest of the shape. As you drag, you'll see a thin outline of what the shape will look like:
Drawing a rectangle shape in Photoshop. Image © 2011 Photoshop Essentials.com
Dragging out a rectangle shape. As you drag, only an outline of the shape appears.
When you're happy with the look of your shape, release your mouse button, at which point Photoshop fills the shape with the color you selected in the Options Bar:
A rectangle shape drawn with the Rectangle Tool in Photoshop. Image © 2011 Photoshop Essentials.com
Photoshop fills the shape with color when you release your mouse button.

Drawing A Shape From Its Center

If you need to draw a rectangle (or any shape) from its center rather than from a corner, click inside the document where the center of the rectangle should be and begin dragging out the shape as you normally would. Once you begin dragging, press your Alt (Win) /Option (Mac) key and keep it held down as you continue dragging. The Alt / Option key tells Photoshop to draw the shape out from its center. This works with all of the Shape tools, not just the Rectangle Tool:
Drawing a rectangle from its center with the Rectangle Tool in Photoshop. Image © 2011 Photoshop Essentials.com
Hold down Alt (Win) / Option (Mac) after you begin dragging to draw a shape from its center.

Drawing Squares

We can also draw squares with the Rectangle Tool. To draw a square, click inside the document and begin dragging out a rectangular shape. Once you've started dragging, press your Shift key on your keyboard and keep it held down while you continue dragging out the shape. Holding the Shift key down will force the shape into a perfect square no matter which direction you drag in. You can also add the Alt (Win) / Option (Mac) key to draw the square out from its center (so you would press and hold Shift+Alt (Win) /Shift+Option (Mac)):
Drawing a square shape with the Rectangle Tool in Photoshop. Image © 2011 Photoshop Essentials.com
Hold down Shift as you drag with the Rectangle Tool to draw a perfect square.
Again, Photoshop will display only a thin outline of the square as you're dragging, but when you release your mouse button, Photoshop fills it with color:
A square shape drawn with the Rectangle Tool in Photoshop. Image © 2011 Photoshop Essentials.com
Photoshop always waits till you release your mouse button before filling the shape with color.

The Shape Options

If you look in the Options Bar, directly to the right of the six Shape tool icons, you'll see a small down-pointing arrow. Clicking on the arrow opens a list of additional options for whichever Shape tool you have selected. With the Rectangle Tool selected, for example, clicking on the arrow brings up the Rectangle Options. With the exception of the Polygon Tool and the Line Tool, which we'll look at later, you won't find yourself using this menu very often because we've already learned how to access the main options directly from the keyboard.
For example, the Unconstrained option is selected for us by default, and that's just the normal behavior of the Rectangle Tool, allowing us to draw rectangular shapes of any size or aspect ratio. The Square option lets us draw squares, but we can do that just by holding down the Shift key as we drag. And the From Center option will draw the shape from its center, but again, we can already do that by holding down our Alt (Win) / Option (Mac) key as we drag:
The Rectangle Tool Options In Photoshop. Image © 2011 Photoshop Essentials.com
Click on the small arrow to view additional options for the Rectangle Tool.

Shape Layers

Before we check out the rest of the Shape tools, let's quickly take a look at what's happening in the Layers panel. If you remember at the beginning of the tutorial, we learned that to draw vector shapes in Photoshop, we need to make sure we have the Shape Layers option selected in the Options Bar, and now that I've drawn a shape, we see that I have an actual Shape layer in my document, which Photoshop has named "Shape 1". Each new vector shape we draw is placed on its own Shape layer which look different from normal pixel-based layers. On the left of a Shape layer is a color swatch icon, which displays the current color of our shape, and to the right of the color swatch is a vector mask thumbnail:
A Shape layer appears in the Layers panel in Photoshop. Image © 2011 Photoshop Essentials.com
Shape layers have a color swatch on the left and a vector mask thumbnail to the right of it.
Earlier I mentioned that we don't need to worry about choosing the correct color for a shape because we can easily change its color after we've drawn it, and we can do that by double-clicking directly on the Shape layer's color swatch:
Changing a shape's color by clicking on its color swatch in the Layers panel. Image © 2011 Photoshop Essentials.com
To change an existing shape's color, double-click on its color swatch.
Photoshop will re-open the Color Picker for us so we can choose a different color for the shape. I'll choose blue this time:
The Color Picker in Photoshop. Image © 2011 Photoshop Essentials.com
Choosing a different color from the Color Picker.
I'll click OK to close out of the Color Picker, and Photoshop changes the color of my square shape from red to blue:
The color of the shape has been changed from red to blue. Image © 2011 Photoshop Essentials.com
It's easy to go back and change the color of a shape at any time.
To the right of the color swatch on a Shape layer is the vector mask thumbnail. The white area inside the thumbnail represents our shape. Vector masks are similar to pixel-based layer masks in that they reveal some parts of a layer while hiding other parts, and by that, I mean that when we draw a vector shape, Photoshop actually fills the entire layer with our chosen color, but it only displays the color inside the shape area. It hides the color in the areas outside the shape. This isn't something you really need to know to work with shapes in Photoshop, but it's always nice to understand what it is you're looking at. The gray area around the shape in the vector mask thumbnail is the area on the layer where the color is being hidden from view, while the white area is where the color is visible:
The vector mask on the Shape layer in Photoshop. Image © 2011 Photoshop Essentials.com
The white area on the vector mask represents the visible shape area on the layer.
To make it easier to see how Photoshop is displaying the vector shape, we can actually turn vector masks off temporarily by holding down our Shift key and clicking directly on the vector mask thumbnail. A big red X will appear in the thumbnail letting us know the mask is now off:
Turning the vector mask off temporarily in the Layers panel. Image © 2011 Photoshop Essentials.com
Hold Shift and click on a vector mask to turn it off.
With the vector mask turned off, the entire layer is revealed in the document, and we can see that it's completely filled with the blue color I chose for my shape. If you look closely, you can see the thin outline of where the shape is sitting on the layer:
The entire color-filled layer is revealed with the vector mask off. Image © 2011 Photoshop Essentials.com
Turning the vector mask off shows that the entire layer itself is filled with color.
To turn a vector mask back on, simply hold down Shift and click again on its thumbnail in the Layers panel. With the mask back on, all of the color outside the shape is once again hidden from view, and all we can see is the color inside the shape itself. The white areas around the shape in my document window are from my Background layer below it:
The blue shape re-appears after turning the vector mask back on. Image © 2011 Photoshop Essentials.com
The document after turning the Shape layer's vector mask back on.
Now that we've looked at Shape layers, let's see what other types of shapes we can draw in Photoshop using the other geometric Shape tools.

1 comment: