Appearance
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
| Property | Type | Description |
|---|---|---|
focal? | number | radial: focal point ratio −1..1 along the first radius |
linearRGB? | boolean | colours blend in linear light (see linearRgbRamp); absent = sRGB |
m | Matrix | - |
spread? | "pad" | "reflect" | "repeat" | past the ends: pad (absent) / reflect / repeat |
stops | object[] | offsets 0..1 ascending, colours "RRGGBBAA" |
type | "linear" | "radial" | - |