Interface
GradientOptions
Options shared by every gradient: colour stops, interpolation space, easing, extend mode and units.
Extended by#
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
easing? | Easing | How the ramp moves between stops. Default linear. | gradient.ts:44 |
extend? | ExtendMode | What the gradient does outside 0..1. Default pad. | gradient.ts:46 |
space? | ColorSpace | Interpolation space. OKLab keeps hue and lightness perceptually even. Default oklab. | gradient.ts:42 |
stops | StopInput[] | Colour stops. Bare colours are spread evenly. See StopInput. | gradient.ts:40 |
units? | GradientUnits | Coordinates of the gradient’s points and radii: each shape’s box (shape, default) or local units (local). | gradient.ts:48 |