Class
RadialGradient
A ramp from a centre outwards, optionally starting at an inner radius. Create it with radial.
Extends#
Constructors#
Constructor#
new RadialGradient(options: RadialGradientOptions): RadialGradient;
Parameters#
| Parameter | Type |
|---|---|
options | RadialGradientOptions |
Returns#
RadialGradient
Overrides#
Properties#
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
center | public | Vec2 | Centre of the ramp. | - | gradient.ts:304 |
easing | readonly | Easing | How the ramp moves between stops. | Gradient.easing | gradient.ts:138 |
extend | readonly | ExtendMode | What the gradient does outside 0..1. | Gradient.extend | gradient.ts:140 |
innerRadius | public | number | Radius where the ramp starts. | - | gradient.ts:308 |
radius | public | number | Radius where the ramp ends. | - | gradient.ts:306 |
space | readonly | ColorSpace | Interpolation space. | Gradient.space | gradient.ts:136 |
units | readonly | GradientUnits | Coordinates of the gradient’s points and radii. | Gradient.units | gradient.ts:142 |