Open Setto

Line

Draw a straight line between two points, with optional arrowheads and dashes.

Shortcut
L
Where
Toolbar, shapes button (hold to open)
Makes
A line (a two-point path named Line)

The Line tool draws one straight segment. It is a two-point path with a 2 px accent stroke and no fill, and each end can carry a marker such as an arrowhead.

Drawing a line

Press L (or choose Line from the shapes button) and drag from start to end. The Start marker goes where you pressed, the End marker where you let go. Hold ⇧ to keep the line to 45° steps. ⌥ does nothing with this tool.

A drag shorter than 4 screen pixels counts as a click, which makes a 240 px horizontal line starting where you clicked. End points land on whole pixels.

ExampleAn arrow pointing at a label

On a floor plan, press L and drag from a caption to the room it names. Then set End to Arrow and Weight to 3.

  1. Line tool: draw a pointer line
  2. End to Arrow, Weight 3

The Line tool settings set the next line’s Stroke, Weight (0.1 to 100 px), Dash, Gap, Cap, Start and End. Dash lengths are in pixels, so they look the same on a short line and a long one.

Adjusting a line on the canvas

A selected line shows its two end points instead of a box, ready to drag, with no mode to enter.

  1. Drag an end point
  2. Drag the line to move it
  3. Drag beyond an end to rotate
Gesture Result
Drag an end point Moves that end.
Drag the line Moves the whole line.
Drag beyond either end (rotate cursor) Rotates the line. Hold ⇧ for 15° steps.
⇧ drag an end point Moves the end in 45° steps around the other end, so a nearly level line becomes level.
Arrow keys, with an end point selected Nudge that end. With ⇧, they nudge it the larger distance.
⌥ click the line Adds a point. ⌥ drag adds a point and pulls out its handles, bending the line into a curve in one step.

A dragged end snaps to the scene, guides, grids and neighboring layers, except inside a rotated group. At 100% zoom and below, it lands on a whole pixel.

A line with a third point becomes a path. It is renamed Path in the Layers panel, unless you renamed it yourself, and shows a selection box the next time you select it. See Editing points.

The Path section

A line has no closed outline, so its Path section has no Fill. Every open path, pen paths and pencil strokes included, has the same controls.

Stroke
ColorDefault The theme's accent color

A theme color, a custom color or a gradient. None hides the line along with the controls below.

Weight
Number0.1 to 1000 pxDefault 2
Alignment
Toggle groupDefault Stroke Center

Always disabled, because an open path is always stroked on its center.

Cap
MenuDefault Round

The shape of the two ends and of every dash end. Butt ends flat at the point, Round adds a half circle past it, and Square adds half the weight past it.

Join
MenuDefault Round

Miter, Round or Bevel. It is disabled on a plain two-point line, with the tooltip No corners to join, and becomes available once the line has a marker, whose tip is a corner, or more than two points.

Start
MenuDefault None

The marker on the first point: None, Arrow, Triangle, Circle or Square. It is hidden on a closed path.

End
MenuDefault None

The marker on the last point.

Dash
NumberpxDefault Empty (solid)

Leave it empty or set 0 for a solid line.

Gap
NumberpxDefault Empty (same as Dash)
Offset
NumberpxDefault 0

Slides the dashes along the line. Keyframe it to make the dashes move.

The end of a thick line with a flat butt cap and with a round cap that extends past the end point (Round)The end of a thick line with a flat butt cap and with a round cap that extends past the end point (Butt)

Combining with other features

  • Draw build. Draws the stroke from the first point to the last, or removes it on the way out. The line needs a stroke. See Builds.
  • Keyframes. You can’t keyframe the end points, weight or markers.
  • Cloner guide. In Path mode, copies run along the line, with one at each end.
  • Layout groups. While you drag an end, the line keeps its size, and the layout takes over again when you let go.
  • Charts. Chart grid lines and baselines show no end points. They offer Start, End and dashes only where the chart draws them.
  • Scale tool. Scales the weight along with the length. A dashed line keeps its number of dashes.

Limits

  • A line has one segment. For more, use the Pen.
  • There are five kinds of marker, and no separate marker size.
Esc

Type to search every page. Try “cloner”, “padding” or “export”.

↑↓ Move↵ Open