Skip to content

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

PropertyTypeDescriptionDefined in
anglenumberThe gradient line's angle in degrees (0 points up, 90 to the right).packages/core/src/gradient/types.ts:16
repeatingbooleanWhether the gradient repeats to fill the paint area (repeating-linear-gradient).packages/core/src/gradient/types.ts:14
stopsGradientColorStop[]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