Skip to content
pixi-silk
GitHub repository
Class

PathGradient

import { PathGradient } from 'pixi-silk';

A ramp that follows a stroke from its first point (t = 0) to its last (t = 1). Create it with along.

Extends#

Constructors#

Constructor#

new PathGradient(options: GradientOptions): PathGradient;

Parameters#

ParameterType
optionsGradientOptions

Returns#

PathGradient

Inherited from#

Gradient.constructor

Properties#

PropertyModifierTypeDescriptionInherited fromDefined in
easingreadonlyEasingHow the ramp moves between stops.Gradient.easinggradient.ts:149
extendreadonlyExtendModeWhat the gradient does outside 0..1.Gradient.extendgradient.ts:151
spacereadonlyColorSpaceInterpolation space.Gradient.spacegradient.ts:147
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:153