Skip to content

anim-format (runtime format) / AnimGradient

Interface: AnimGradient ​

A gradient: colour offsets along unit space, m = unit → shape space (linear: x from 0 to 1; radial: the unit circle)

Properties ​

PropertyTypeDescription
focal?numberradial: focal point ratio −1..1 along the first radius
linearRGB?booleancolours blend in linear light (see linearRgbRamp); absent = sRGB
mMatrix-
spread?"pad" | "reflect" | "repeat"past the ends: pad (absent) / reflect / repeat
stopsobject[]offsets 0..1 ascending, colours "RRGGBBAA"
type"linear" | "radial"-

HereSplash — 2D animation for the web