Skip to content

Documentation / @ripl/core / ConicGradient

Interface: ConicGradient

Defined in: packages/core/src/gradient/types.ts:36

A parsed conic gradient with angle, position, color stops, and optional repeating flag.

Properties

PropertyTypeDescriptionDefined in
anglenumberThe starting angle in degrees, measured clockwise from the top.packages/core/src/gradient/types.ts:42
position[number, number]The centre position as [x, y] percentages of the paint area.packages/core/src/gradient/types.ts:44
repeatingbooleanWhether the gradient repeats to fill the paint area (repeating-conic-gradient).packages/core/src/gradient/types.ts:40
stopsGradientColorStop[]The color stops swept around the centre.packages/core/src/gradient/types.ts:46
type"conic"Discriminant identifying the gradient as conic.packages/core/src/gradient/types.ts:38