Class
Gradient
Base class of all gradients. Stops are interpolated premultiplied (OKLab by default), baked into a shared half-float atlas and dithered when sampled, so gradients stay smooth without banding.
Extended by#
Constructors#
Constructor#
new Gradient(options: GradientOptions): Gradient;
Parameters#
| Parameter | Type |
|---|---|
options | GradientOptions |
Returns#
Gradient
Properties#
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
easing | readonly | Easing | How the ramp moves between stops. | gradient.ts:138 |
extend | readonly | ExtendMode | What the gradient does outside 0..1. | gradient.ts:140 |
space | readonly | ColorSpace | Interpolation space. | gradient.ts:136 |
units | readonly | GradientUnits | Coordinates of the gradient’s points and radii. | gradient.ts:142 |