Stroke
The outline of a shape: its paints, thickness, position on the edge and how corners are joined.
strokesPaint[]#
The list of paints that colour the outline.
A new shape has no strokes, so no outline is drawn until you add one. Paints are drawn in list order.
animatable
strokeWeightStrokeWeight#
Thickness of the outline in pixels.
The default is 1. A weight of 0 draws no outline.
0 – ∞ · animatable
strokePositionString#
Where the outline sits relative to the edge of the shape: INSIDE, CENTER or OUTSIDE.
CENTER puts half of the weight on each side of the edge. INSIDE and OUTSIDE put all of it on one side.
Default 'CENTER' · 'INSIDE' | 'CENTER' | 'OUTSIDE' · animatable
strokeJoinString#
How the outline turns at a sharp corner: MITER (pointed), ROUND or BEVEL (cut flat).
A MITER corner sharper than strokeMiterAngle is cut flat like a BEVEL.
Default 'MITER' · 'MITER' | 'ROUND' | 'BEVEL' · animatable
strokeMiterAngleNumber#
The sharpest corner angle, in degrees, that still gets a pointed MITER join.
Corners sharper than this are cut flat. A larger value cuts more corners. The default is 26 and the lowest accepted value is 8. It has no effect when strokeJoin is ROUND or BEVEL.
Default 26 · 8 – 180 · animatable
dashCapString#
Shape of the ends of each dash in a dashed outline: butt (flat), round or square.
This is separate from strokeCap, which shapes the two ends of the whole path. It only shows when the outline is dashed.
Default 'butt' · 'butt' | 'round' | 'square' · animatable