Drawing > Using the Pen tool > Drawing straight lines with the Pen tool

Drawing straight lines with the Pen tool

To draw straight line segments with the Pen tool, you create anchor points, points on the line that determine the length of individual line segments.

To draw straight lines with the Pen tool:

1 Select the Pen tool.
2 Select stroke and fill attributes. See Specifying stroke and fill attributes.
3 Position the pointer on the Stage where you want the straight line to begin, and click to define the first anchor point.
4 Click again where you want the first segment of the straight line to end. Shift-click to constrain the tool to multiples of 45° .
5 Continue clicking to create additional straight segments.
6 To complete the path as an open or closed shape, do one of the following:
To complete an open path, double-click the last point, click the Pen tool in the toolbox, or Control-click (Windows) or Command-click (Macintosh) anywhere away from the path.
To close a path, position the Pen tool over the first anchor point. A small circle appears next to the pen tip when it is positioned correctly. Click or drag to close the path.
To complete the shape as is, choose Edit > Deselect All or select a different tool in the toolbox.