Skip to content
pixi-silk
GitHub repository
Interface

LinearGradientOptions

import type { LinearGradientOptions } from 'pixi-silk';

Options of linear: stops plus the start and end points of the ramp.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined in
easing?EasingHow the ramp moves between stops. Default linear.GradientOptions.easinggradient.ts:45
extend?ExtendModeWhat the gradient does outside 0..1. Default pad.GradientOptions.extendgradient.ts:47
from?Vec2Start point. Default [0, 0] (top).-gradient.ts:268
space?ColorSpaceInterpolation space. OKLab keeps hue and lightness perceptually even. Default oklab.GradientOptions.spacegradient.ts:43
stopsStopInput[]Colour stops. Bare colours are spread evenly. See StopInput.GradientOptions.stopsgradient.ts:41
to?Vec2End point. Default [0, 1] (bottom).-gradient.ts:270
units?GradientUnitsCoordinates of the gradient’s points and radii: each shape’s box (shape, default) or local units (local).GradientOptions.unitsgradient.ts:49