Skip to content
GitHub repository
Interface

ConicGradientOptions

Options of conic: stops plus centre, start angle and sweep.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined in
center?Vec2Default [0.5, 0.5].-gradient.ts:332
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
space?ColorSpaceInterpolation space. OKLab keeps hue and lightness perceptually even. Default oklab.GradientOptions.spacegradient.ts:42
startAngle?numberAngle (radians, y-down so positive is clockwise) where the ramp starts. Defaults to the arc start for arcs/sectors, otherwise 12 o’clock.-gradient.ts:337
stopsStopInput[]Colour stops. Bare colours are spread evenly. See StopInput.GradientOptions.stopsgradient.ts:40
sweep?numberAngular length of the ramp. Defaults to the arc sweep for arcs/sectors, otherwise a full turn.-gradient.ts:339
units?GradientUnitsCoordinates of the gradient’s points and radii: each shape’s box (shape, default) or local units (local).GradientOptions.unitsgradient.ts:48