Interface
LinearGradientOptions
Options of linear: stops plus the start and end points of the ramp.
Extends#
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
easing? | Easing | How the ramp moves between stops. Default linear. | GradientOptions.easing | gradient.ts:44 |
extend? | ExtendMode | What the gradient does outside 0..1. Default pad. | GradientOptions.extend | gradient.ts:46 |
from? | Vec2 | Start point. Default [0, 0] (top). | - | gradient.ts:257 |
space? | ColorSpace | Interpolation space. OKLab keeps hue and lightness perceptually even. Default oklab. | GradientOptions.space | gradient.ts:42 |
stops | StopInput[] | Colour stops. Bare colours are spread evenly. See StopInput. | GradientOptions.stops | gradient.ts:40 |
to? | Vec2 | End point. Default [0, 1] (bottom). | - | gradient.ts:259 |
units? | GradientUnits | Coordinates of the gradient’s points and radii: each shape’s box (shape, default) or local units (local). | GradientOptions.units | gradient.ts:48 |