Stroke Dashes

Stroke Dashes

Choose a dash preset or style, or define your own sequence. Available presets and styles appear in Dash in the Stroke panel or stroke selector dialog.

Edit dash and gap lengths numerically in the dash editor, or drag their positions and edges in the preview.

The stroke dash editor.

Use these controls to choose or save a sequence:

  • Select - Choose an existing dash preset or style to use or modify.
  • Save Preset - Save the current dash settings as a preset.
  • Save Style - Save the current dash settings as a style.

Save frequently used sequences for easy reuse. Editing a linked dash style updates every stroke that uses it.

Set up the sequence with these options:

  • Dashes - Set the number of dashes and gaps. A solid stroke starts with zero.
  • Relative Width - Express dash and gap lengths relative to the stroke width. When enabled, they grow or shrink with the stroke width. When disabled, their lengths use absolute units.
  • Phase - Shift the starting point within the dash sequence. This lets the stroke begin partway through a dash or gap. The offset can be relative to the stroke width or an absolute value.
  • Align to Cusp - Adjust the sequence lengths between sharp corners so that cusp nodes fall within dashes rather than gaps.
  • dash and gap - Set the individual lengths in the numeric fields, or adjust them in the preview.

In the preview:

  • Drag inside a dash or gap to move it.
  • Drag an edge to change its length.
  • Watch the cursor as you hover to see whether you will move or resize the segment.