Skip to content

hm5-types (source format) / Stroke

Interface: Stroke ​

How a shape's outline / line is drawn.

Properties ​

PropertyTypeDescription
cap?StrokeCap-
colorstring-
dash?number[]DASHED LINE (虛線): on / off lengths like SVG stroke-dasharray, in the same units as width (the PARENT's). Absent / empty = solid; an odd list is repeated. Applied AFTER the trim.
dashOffset?numberhow far into the dash pattern the line starts (SVG stroke-dashoffset)
join?StrokeJoin-
trimEnd?number-
trimOffset?numberturns the drawn window along the path, in shares of the length (absent = 0); wraps on a closed path, slides and cuts on an open one
trimStart?numberTRIM PATH (owner 2026-11-22, After Effects "Trim Paths" / Rive): only the part of the path from trimStart to trimEnd is drawn, measured along its ARC LENGTH as shares 0..1 (absent = 0 / 1 = all of it). trimStart > trimEnd wraps through the path's start point on a CLOSED path and draws nothing on an open one. THE maths is @utils/pure/trimDash (strokePaths).
widthnumber-

HereSplash — 2D animation for the web