Skip to content
GitHub repository
Interface

LinearGradientOptions

Options of linear: stops plus the start and end points of the ramp.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined in
easing?EasingHow the ramp moves between stops. Default linear.GradientOptions.easinggradient.ts:44
extend?ExtendModeWhat the gradient does outside 0..1. Default pad.GradientOptions.extendgradient.ts:46
from?Vec2Start point. Default [0, 0] (top).-gradient.ts:257
space?ColorSpaceInterpolation space. OKLab keeps hue and lightness perceptually even. Default oklab.GradientOptions.spacegradient.ts:42
stopsStopInput[]Colour stops. Bare colours are spread evenly. See StopInput.GradientOptions.stopsgradient.ts:40
to?Vec2End point. Default [0, 1] (bottom).-gradient.ts:259
units?GradientUnitsCoordinates of the gradient’s points and radii: each shape’s box (shape, default) or local units (local).GradientOptions.unitsgradient.ts:48