Pen tool and paths

Paths are shapes made up of points, connected by line and bézier curve segments. They can be used to make any 2D shape that can’t be created using the primitive shapes. Like other shapes, paths live inside vector and mask layers, and can be combined using boolean operations.

There are two ways to make a path. Draw one with the pen tool (P), or convert existing shapes and text using the Convert to Path button in the vector property tab, or Layer › Convert To Path. Paths are edited with the edit tool (A).

Pen tool #

Click to place points connected by straight lines, and click and drag to place points with curves. Holding Space and dragging pans the canvas while you draw, as it does with every tool.

After a point with a curve, the next segment flows on from it. Hold ⌥ to straighten it instead: the handle leading out of the previous point is pulled in, so the segment leaves it in a straight line and the point becomes a corner. The preview follows the key, so you can press and release ⌥ to compare, and the segment is placed the way it looks when you release the mouse. Click with ⌥ held for a straight segment, or drag with it held for a segment that leaves straight and curves into the new point.

Pressing ⌘Z while drawing takes back the last point, and ⇧⌘Z puts it back again.

To finish a path, press Esc, or switch to another tool. Clicking on the first point of the path closes it and finishes. Pressing ⌫ while drawing cancels the path.

The path being drawn snaps like any other layer, so a new point can line up with an earlier one: the points placed so far, the horizontal and vertical lines through each of them, and the edges and center lines of the box around them are all targets.

The pen’s cursor changes to show what will happen when you click.

  • Over the end of an open path, clicking resumes drawing from that end.
  • Over the end of another open path while drawing, clicking joins the paths together.
  • Over the start of the path being drawn, clicking closes the path.

Holding modifier keys when you start drawing changes where the new path goes.

  • Hold ⇧ to add the path to the selected vector layer.
  • Hold ⌥ to subtract it from the selected vector layer.
  • Hold ⇧⌥ to exclude it from the selected vector layer.
  • Hold ⌃ to add it as a new subpath of the selected path.

Pen modes #

The pen tool has four modes, which constrain where the next segment goes. They can be chosen via Tool › Pen Mode, or by pressing the arrow keys while the pen tool is selected. The mode is shown briefly on the canvas when it changes, and resets to freehand after each path.

  • Freehand (←) places points and segments freely, at the mouse cursor’s location.
  • Tangent (↑) continues along the tangent of the path’s endpoint, for smooth continuations.
  • Extend (↓) continues along the extended curve of the previous segment.
  • Arc (→) draws the next segment as a circular arc that flows on from the previous segment. The arc’s radius is shown next to the cursor. The circle through the previous point and the pointer offers two arcs: the shorter one is drawn, or the longer one while ⌥ is held. An arc longer than a quarter turn is drawn as several segments, so it stays true to the circle.

Holding ⇧ while drawing adds constraints, and the angle or length is shown next to the cursor.

  • Freehand snaps the direction of the new segment to 45° steps.
  • Tangent and extend snap the length of the new segment to quarters of the previous segment’s length.
  • Arc snaps the arc’s angle to 15° steps, and shows the angle above the radius.

Edit tool #

The edit tool selects and moves individual points, bézier control handles, and segments.

  • Click on a point to select it, and deselect everything else.
  • ⇧-click on a point to add or remove it from the selection.
  • Click inside a path to select all of that path’s points, or ⇧-click inside a path to toggle its points.
  • Drag from an empty area, or inside a shape, to marquee select points.
  • ⌘-click a shape to select it on its own, whatever is selected, and ⌘-drag to move it. Holding ⌘ works with any tool.
  • Drag a point, segment, or control handle to move it. Dragging moves all selected points.
  • Hold ⇧ while dragging to constrain the movement to 45° steps.
  • ⌥-drag a point to convert it to a symmetrical point and drag out new control handles.
  • ⌥-click a point to toggle it between a corner and a symmetrical point.
  • ⌥-drag a control handle to unlink it from the handle on the other side of the point, so it can be moved independently.
  • ⌥-click a segment to add a point where you clicked. ⌥-drag from a segment to add a point there and drag symmetrical control handles out of it, in one go.
  • ⇧⌥-click a segment to cut the path there, and ⇧⌥-drag from a segment to cut the path and drag the new end away from the cut.
  • Press ⌫ to delete the selected points. If no points are selected, the selected shapes are deleted.
  • Drag the end of an open path onto the other end, or onto the end of another path, and hold ⌃ as you release to close or join the paths.

Further reading: Transform

Path menu #

The Path menu contains commands for editing the selected points. The same commands are available by right-clicking the canvas with the edit tool, where there are also versions that act on the segment or subpath nearest to where you clicked.

Path › Select changes which points are selected in each subpath.

  • Select, Deselect, and Invert select all points, no points, or swap the selection.
  • Rotate Forward (⌃⌥→) and Rotate Backward (⌃⌥←) move the selection one point towards the end or start of each subpath.
  • Expand (⌃⌥↑) also selects the points next to selected points, and Contract (⌃⌥↓) deselects selected points that are next to unselected points.
  • Alternate selects every other point.
  • Endpoints selects the first and last points of open subpaths.

Path › Convert changes the point type, which controls how the bézier control handles on either side of a point behave.

  • Corner removes the control handles, making a sharp corner.
  • Unlinked allows the control handles to be moved independently.
  • Symmetrical links the control handles, so they have matching angles and lengths.
  • Asymmetrical links the control handles, so they have matching angles but can have different lengths.

Path › Split splits paths at the selected points.

  • Cut splits the path at the selected points, opening it up.
  • Add splits the path by adding a new point at each selected point.

The right-click menu also has Cut and Add for the nearest segment. With the edit tool, ⌃⌥+ adds a point to the segment nearest the pointer and ⌃⌥- cuts it, without opening the menu. ⌥-clicking a segment adds a point too, and ⇧⌥-clicking cuts it. Either click can carry on as a drag: ⌥-drag to pull control handles out of the new point, or ⇧⌥-drag to move the cut end. The click and the drag are one step in the undo history.

Path › Subdivide adds points to the segments next to the selected points. Bisect splits each segment into two, Trisect into three, and Quadrisect into four, with the new segments having equal lengths. The shortcuts are ⌃⌥,, ⌃⌥., and ⌃⌥/.

Path › Align lines up the selected points.

  • Average moves the points to their center (⌃⌥A).
  • Average Horizontal and Average Vertical line the points up horizontally or vertically, at their center.
  • Snap moves the points to the nearest whole pixel.

Path › Join connects the selected endpoints of open paths.

  • Average joins the endpoints by merging them at their average location.
  • Line, Quadratic, and Cubic join the endpoints with a new line, quadratic bézier, or cubic bézier segment. Line has a shortcut, ⌃⌥J.

Path › Duplicate duplicates the selected points, either as a new subpath in the same path (Subpath), or as a new path (Path).

Path › Delete removes the selected points, with a few different ways of dealing with the gap.

  • Remove deletes the points and the segments attached to them, opening the path.
  • Flatten deletes the points and joins the neighbouring points with a straight line.
  • Merge deletes the points and joins the neighbouring segments, keeping their existing bézier handles.
  • Refit deletes the points and joins the neighbouring points with a curve that approximates the original shape.

With the edit tool, pressing ⌫ on the canvas removes the selected points, the same as Remove. ⇧⌫ flattens, ⌃⌥⌫ merges, and ⌃⌫ refits. If no points are selected, ⌫ deletes the selected shapes instead.

The vector property tab also has buttons for the most common path commands, including join, convert, subdivide, delete, Offset Path, and Outline Stroke.

Segment types #

Segments between points can be lines, quadratic bézier curves, or cubic bézier curves. Right-click near a segment with the edit tool and choose Convert › Line, Quadratic, or Cubic to change its type.

Combining and dividing shapes #

Path › Combine Shapes (⌃⌥C) merges the selected shapes into a single path, applying each shape’s boolean operation. Path › Divide Shapes (⌃⌥D) splits the selected shapes into separate paths, one for each area where they overlap or don’t overlap. If only one shape is selected, both commands convert it to a path.

Further reading: Shape boolean operations

Path display options #

The View menu has a few options that control how paths are shown while editing.

  • Show Path Transform Controls shows the bounding box resize, rotate, and shear handles when paths are selected with the edit tool. Turn it off to keep the handles out of the way while editing points.
  • Show Path Ends marks where each subpath starts, and the ends of open paths.
  • Show Curve Continuity marks how smoothly segments join at each point, showing whether the join is a corner, tangent continuous, or curvature continuous.

The colors used for paths, path ends, and curve continuity can be changed in the Colors tab of Skala’s settings.

Further reading: Settings