The pen tool
The pen tool draws a shape of your own: a path of points joined by straight or curved segments. Each point is either a corner or a smooth point, and that decides how the path runs through it.
Drawing a path
Choose the pen in the toolbar and click on the canvas to place points. A click places a corner, where the path changes direction. To place a smooth point instead, click and drag: the drag pulls out the point's handles, and the path curves through it. Click the first point again to close the path, or press Escape to leave it open. Escape is also the way out of the pen tool, because its button in the toolbar doesn't switch it off.
Corners and smooth points
A smooth point has two handles that stay in line with each other, so the path runs through the point without a kink. Drag one handle and the other turns with it. Each keeps its own length, so the curve can be wider on one side of the point than on the other. To put a kink in the path, hold Alt (Option on a Mac) while you drag a handle; it then moves on its own. From then on, the two handles stay independent.
Double-click a point to switch it between a corner and a smooth point. A corner gets handles in line with its neighbours, and a smooth point loses both of its handles. To curve the path on one side of a point only, select one handle and press Delete.
Editing a path
To change a shape you've drawn, double-click it, or select it and press Enter. Its points appear, and you work on one point at a time.
| To | Do this |
|---|---|
| Add a point | Click on the path where the point should go, and drag to move it right away. The curve keeps its shape until you do. |
| Move a point | Drag it. It snaps into line with the shape's other points; hold Ctrl to place it freely. |
| Place a point exactly | Select it, or one of its handles, and type its X and Y in the Path section of the properties panel. |
| Remove a point | Select it and press Delete or Backspace. The points on either side are joined. |
| Open a closed path | Select a point and press Alt + Delete. The point and the two segments that meet at it are removed, which leaves a gap. |
| Continue an open path | Choose the pen, click either end of the path, and place more points. Click the other end to close the path. |
| Stop editing | Press Escape, or select another element. |
The size of a drawn shape
A shape drawn with the pen tool has no width or height of its own. It is exactly as big as its path, and its W and H in the Layout section read Hug. Every point stays where you placed it, which is what you want for a drawing that should look exactly as you made it.
A rectangle or ellipse works differently: its points are placed relative to its W and H, so the shape stretches when its size changes. To give a drawn shape that behavior, double-click it to edit its path and click Box Shape in the Path section of the properties panel. Its W and H become numbers, and from then on it resizes like any other element, can keep a ratio and uses its anchor. Unbox Shape turns it back and clears its ratio.
In an auto layout, a drawn shape takes the room its path needs. Along the direction of the layout, it can also be set to Fill: it then takes the space that is left and stretches into it like a boxed shape.