Stroke
Stroke shape outlines with control over width, caps, trim, dash, and profile.
What it does
Stroke draws an outline along a path's edge, GPU-rendered so it stays crisp at any zoom. A shape wired in has stroke settings stamped onto it, width, caps, joins, trim and dash, without changing the shape itself. With the input disconnected, the output is a reusable stroke setting to plug into a shape generator's own stroke input.
Width takes several forms. The slider sets a uniform base width, a wired Number overrides it, and a wired easing curve or number sequence becomes a width profile that varies the width along the path's length. A per-point width channel on the input path (default name "pressure", for pen and tablet drawing) takes over from the base width entirely.
When to use it
An outline instead of, or in addition to, a fill: a line drawing, a border, a calligraphy-style brush stroke
A stroke that tapers, varies in width, or responds to drawing pressure
Only part of the path visible: trim the stroke to a start and end window, or animate that window along the path
A dashed or gapped line
A reusable stroke setting built once and fed into several shape generators
| Parameter | Type | Default |
|---|---|---|
input | OneOf([Collection]) | — |
width | Any | 20 |
min_width | Number | 0.100 |
start_width | Number | 100 |
end_width | Number | 100 |
align | String | "Centre" |
cap_style | String | "Round" |
join_style | String | "Round" |
miter_limit | Number | 4 |
color | OneOf([Color, FieldOf(Color), ColorArray, Field, Material, MaterialArray, RasterArray]) | rgba(0.00, 0.00, 0.00, 1.00) |
reverse_path | Boolean | false |
enable_trim | Boolean | false |
trim_start | Number | 0 |
trim_end | Number | 100 |
travel | Number | 0 |
enable_dash | Boolean | false |
dash_pattern | String | "10, 5" |
dash_offset | Number | 0 |
width_attribute | String | "pressure" |
strength | Number | 1 |
Gotchas
Start Width and End Width are percentages of the base width, not absolute pixel values. 100% means full base width, not no limit.
Trim and Dash are hidden until Enable Trim or Enable Dash is on. The percentage and pattern controls appear with the corresponding toggle.
Miter Limit only matters when Join is set to Miter. With Round or Bevel joins it has no effect and stays hidden.
Colour is not limited to a flat swatch. Connect a Colour, image, or Field into Stroke's colour input to paint the stroke with it, sampled along the stroke's length.
Worked example
Draw or import a path (e.g. a Curve or Pen shape) and connect it into Stroke's input.
Set Width for the base thickness, and pick a Cap and Join style.
Switch on Enable Trim and drag Trim Start / Trim End to reveal only part of the path, for animated line-draw effects.
Switch on Enable Dash and set a pattern like "10, 5" for a dashed line.
Connect a Colour or Field into the colour input to texture the stroke.