Documentation / @ripl/core / RadialGradient
Interface: RadialGradient
Defined in: packages/core/src/gradient/types.ts:22
A parsed radial gradient with shape, position, color stops, and optional repeating flag.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
position | [number, number] | The centre position as [x, y] percentages of the paint area. | packages/core/src/gradient/types.ts:30 |
repeating | boolean | Whether the gradient repeats to fill the paint area (repeating-radial-gradient). | packages/core/src/gradient/types.ts:26 |
shape | string | The gradient shape, e.g. 'circle' or 'ellipse'. | packages/core/src/gradient/types.ts:28 |
stops | GradientColorStop[] | The color stops from the centre outward. | packages/core/src/gradient/types.ts:32 |
type | "radial" | Discriminant identifying the gradient as radial. | packages/core/src/gradient/types.ts:24 |