Learn how to draw straight and curved vector paths using Photoshop's Pen and Freeform Pen tools.
Most of the drawing and editing of paths can be done via the tools under the Pen tool icon in the Tools palette. Click and hold the mouse button on this icon to bring up all the other tools:
Let's briefly go over these tools now, and what you can use them for.
Let's start with the easiest technique. First create a new document of, say, 500 x 500 pixels to give yourself plenty of space to work in. Then select the Pen tool in the Tools palette.
Now click with the mouse in your document. You'll see that you've placed your first anchor point. Move the mouse and click again. You've now created your first line segment, with two anchor points at each end. Congratulations! :)
Click in a few more places in your document. You'll see that each click adds a new anchor point, and a new straight line segment.
Select the Rubber Band option (under the Pen Options drop-down in the options bar) to see where the line is going to be placed before you place it. This is especially useful for beginners, as it enables you to see exactly what's happening!
So far, your path is an open path. This means it has a start point and an end point, and doesn't join up. To make a closed path, move the mouse over the first point you created - you'll see the Pen tool cursor changes, with a little 'o' appearing beside it:
Now click with the mouse, and you'll see that you have now created a complete shape - a closed path. Well done!
The path you just created is stored in a temporary path called the Work Path. Let's delete this path so we can start again with a clean slate.
Click on the "Paths" tab in the Layers palette to bring up the list of available paths:
Now drag the "Work Path" to the trash can icon:
You're now ready to have a go at tackling curves!
Learning to draw curves will take a bit longer, but they're not too hard once you get the hang of them!
To start a curve, select the Pen tool, click in your document and drag the mouse in the rough direction you want the curve to head - in this example, try dragging vertically up the page:
You'll see that as you drag, two direction lines and direction points are created. These control the shape of the curve you're about to produce:
The best way to understand the direction lines is to just play around with them. We'll come back to them in a moment!
Now try creating a new anchor point by clicking the mouse to the right of your original anchor point, and dragging downwards:
You've now placed a second anchor point, and created a curve between the two points!
Notice that you dragged upwards from the first anchor point, and downwards from the second. This follows the path of the curve - it goes up from the first point, and down as it reaches the second.
What would happen if you dragged upwards from the second anchor point too? Try it! (You may want to delete the Work Path and start again from scratch.)
This time, you can see that the curve moves upwards towards the second point, flipping direction as it does so. So the curve will always try to head in the direction you drag!
Practice drawing a few curves like these, dragging in different directions, until you're confident with the technique.
Note that when we're creating these curves we're always making smooth anchor points. In the Editing paths in Photoshop tutorial, we show you how to create corner anchor points too (take a look at the example path at the top of the Photoshop paths explained tutorial to see a corner point).
Often you'll want to create a path that contains both straight lines and curved lines. It's easy to switch between the two.
Start off drawing some straight lines by just clicking with the mouse:
To switch to drawing a curve, click and drag with the mouse where you want the curve to end:
To switch back to drawing a straight line, create the anchor point of your last curve by clicking rather than clicking and dragging (in other words, make a corner point). Then click with the mouse where you would like the straight line to end:
If you've previously left an incomplete path and you come back to it later, you can continue adding to the path by moving the Pen tool over either end of the path until it turns into the "Pick Up Path" cursor:
Note that you can't pick up a closed path in this way; however you can add and delete points on the closed path, and drag points around to achieve the new shape you need. You can also reopen a closed path - see the "Reopening and Joining Path Components" section below.
You can use the Freeform Pen tool to quickly sketch out your path. It's not very accurate and often doesn't place anchor points where you'd ideally like them, but it is easy to use, which is a plus for beginners!
To use this tool, first select it from the Pen Tool icon in the Tools palette:
Then just click with the mouse and drag to draw your path:
When you release the mouse button, the path is created:
You can adjust the frequency of the anchor points created by the Freeform Pen tool by altering the value in the Curve Fit box in the options bar. The higher the value, the less anchor points and segments will be created (but the less accurate the finished path will be, too!).
You can also make the Freeform Pen tool behave like the Magnetic Lasso tool by clicking the Magnetic checkbox in the options bar. The tool will then snap to the shape you're drawing around. See the Selecting with the marquee and lasso tools tutorial for more info on the Magnetic Lasso.
You can switch between the regular Pen tool and the Freeform Pen tool by pressing Shift+P.