Skip to content

anim-format (runtime format) / AnimVectorShape

Interface: AnimVectorShape ​

Properties ​

PropertyTypeDescription
fill?stringflat fill "RRGGBBAA" (also the fallback of a gradient)
gradient?AnimGradient-
lines?number[][]outline: rings / open paths (open) stroked with stroke
open?boolean-
polys?number[][][]fill: polygons, each [outer, ...holes], rings flat [x, y, …]
stroke?objectjoin / cap absent = round. trim* / dash* (owner 2026-11-22) are the source stroke's trim path + dashes, in the same units as width; THE maths is @utils/pure/trimDash strokePaths (all absent = the whole path, solid).
stroke.cap?"butt" | "square"-
stroke.colorstring-
stroke.dash?number[]-
stroke.dashOffset?number-
stroke.join?"miter" | "bevel"-
stroke.trimEnd?number-
stroke.trimOffset?number-
stroke.trimStart?number-
stroke.widthnumber-

HereSplash — 2D animation for the web