Skip to content

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

PropertyTypeDescriptionDefined in
position[number, number]The centre position as [x, y] percentages of the paint area.packages/core/src/gradient/types.ts:30
repeatingbooleanWhether the gradient repeats to fill the paint area (repeating-radial-gradient).packages/core/src/gradient/types.ts:26
shapestringThe gradient shape, e.g. 'circle' or 'ellipse'.packages/core/src/gradient/types.ts:28
stopsGradientColorStop[]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