Style

Stroke

How an outline is drawn: width, color, dash pattern and line caps.

Object type style pins

A Stroke describes how a shape's outline or a line is drawn: its width, its color, a dash pattern (dashStyle) and the caps at the ends of lines and dashes. The color is a Paint: a Color or a gradient.

Hierarchy

Parents
None
Subtypes
None

Properties

NameTypeNotes
widthnumber
colorPaint
dashStyleStrokeDash
capsStrokeCaps

Nodes

Break Stroke

Node id break/Stroke

Inputs

NameTypeDefaultNotes
objectStroketype default

Outputs

NameTypeNotes
widthnumber
colorPaint
dashStyleStrokeDash
capsStrokeCaps

Make Stroke

Node id make/Stroke

Inputs

NameTypeDefaultNotes
widthnumber1
colorPaint{ r: 0, g: 0, b: 0, a: 1 }
dashStyleStrokeDash"SOLID"
capsStrokeCaps"round"

Outputs

NameTypeNotes
objectStroke

Set Stroke

Node id set/Stroke

Inputs

NameTypeDefaultNotes
objectStroketype default
widthnumber—
colorPaint—
dashStyleStrokeDash—
capsStrokeCaps—

Outputs

NameTypeNotes
objectStroke

Lerp Stroke

Node id lerp/Stroke

Inputs

NameTypeDefaultNotes
aStroketype default
bStroketype default
tnumber0.5

Outputs

NameTypeNotes
resultStroke

Notes

  • Default. Make Stroke gives a solid black stroke, 1 wide, with round caps.
  • Dashes. dashStyle is one of the StrokeDash presets; custom dash patterns aren't available in graphs.
  • Gradient strokes. Connect a Make LinearGradient or Make RadialGradient to Make Stroke's color. The gradient is in the shape's or line's own units, like a gradient fill, and dashes and caps work as usual. In the inspector an unconnected color is edited as a Color.
  • Used by every Shape and Line.

Lerp

Lerp Stroke blends the width and the color. Two Colors, or two gradients of the same kind with as many stops, are blended; any other pair switches at t = 0.5, from a's color to b's. The dash style and the caps are a's. t is clamped to 0, 1.

© 2026 Wirepaint