Interface
RadialGradientOptions
Options of radial: stops plus centre, outer radius and inner radius.
Extends#
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
center? | Vec2 | Default [0.5, 0.5]. | - | gradient.ts:292 |
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 |
innerRadius? | number | Radius where the ramp starts. Default 0. | - | gradient.ts:296 |
radius? | number | Outer radius. In shape units it is a fraction of the larger side. Default 0.5. | - | gradient.ts:294 |
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 |
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 |