Class
ConicGradient
An angular ramp around a centre. On arcs it follows the arc. Create it with conic.
Extends#
Constructors#
Constructor#
new ConicGradient(options: ConicGradientOptions): ConicGradient;
Parameters#
| Parameter | Type |
|---|---|
options | ConicGradientOptions |
Returns#
ConicGradient
Overrides#
Properties#
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
center | public | Vec2 | Centre of the ramp. | - | gradient.ts:347 |
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 |
space | readonly | ColorSpace | Interpolation space. | Gradient.space | gradient.ts:136 |
startAngle? | public | number | Angle where the ramp starts. Unset follows the arc, or 12 o’clock for other shapes. | - | gradient.ts:349 |
sweep? | public | number | Angular length of the ramp. Unset follows the arc, or a full turn for other shapes. | - | gradient.ts:351 |
units | readonly | GradientUnits | Coordinates of the gradient’s points and radii. | Gradient.units | gradient.ts:142 |