Class
PathGradient
A ramp that follows a stroke from its first point (t = 0) to its last (t = 1). Create it with along.
Extends#
Constructors#
Constructor#
new PathGradient(options: GradientOptions): PathGradient;
Parameters#
| Parameter | Type |
|---|---|
options | GradientOptions |
Returns#
PathGradient
Inherited from#
Properties#
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
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 |
units | readonly | GradientUnits | Coordinates of the gradient’s points and radii. | Gradient.units | gradient.ts:142 |