Skip to content
GitHub repository
Interface

GradientOptions

Options shared by every gradient: colour stops, interpolation space, easing, extend mode and units.

Extended by#

Properties#

PropertyTypeDescriptionDefined in
easing?EasingHow the ramp moves between stops. Default linear.gradient.ts:44
extend?ExtendModeWhat the gradient does outside 0..1. Default pad.gradient.ts:46
space?ColorSpaceInterpolation space. OKLab keeps hue and lightness perceptually even. Default oklab.gradient.ts:42
stopsStopInput[]Colour stops. Bare colours are spread evenly. See StopInput.gradient.ts:40
units?GradientUnitsCoordinates of the gradient’s points and radii: each shape’s box (shape, default) or local units (local).gradient.ts:48