Documentation / @ripl/core / LinearGradient
Interface: LinearGradient
Defined in: packages/core/src/gradient/types.ts:10
A parsed linear gradient with angle, color stops, and optional repeating flag.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
angle | number | The gradient line's angle in degrees (0 points up, 90 to the right). | packages/core/src/gradient/types.ts:16 |
repeating | boolean | Whether the gradient repeats to fill the paint area (repeating-linear-gradient). | packages/core/src/gradient/types.ts:14 |
stops | GradientColorStop[] | The color stops along the gradient line. | packages/core/src/gradient/types.ts:18 |
type | "linear" | Discriminant identifying the gradient as linear. | packages/core/src/gradient/types.ts:12 |