Skip to content
GitHub repository
Class

PathGradient

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:138
extendreadonlyExtendModeWhat the gradient does outside 0..1.Gradient.extendgradient.ts:140
spacereadonlyColorSpaceInterpolation space.Gradient.spacegradient.ts:136
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:142