Interface
ConicGradientOptions
Options of conic: stops plus centre, start angle and sweep.
Extends#
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
center? | Vec2 | Default [0.5, 0.5]. | - | gradient.ts:332 |
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 |
space? | ColorSpace | Interpolation space. OKLab keeps hue and lightness perceptually even. Default oklab. | GradientOptions.space | gradient.ts:42 |
startAngle? | number | Angle (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 |
stops | StopInput[] | Colour stops. Bare colours are spread evenly. See StopInput. | GradientOptions.stops | gradient.ts:40 |
sweep? | number | Angular length of the ramp. Defaults to the arc sweep for arcs/sectors, otherwise a full turn. | - | gradient.ts:339 |
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 |