Skip to content
GitHub repository
Class

LinearGradient

A straight ramp between two points. Create it with linear, vertical or horizontal.

Extends#

Constructors#

Constructor#

new LinearGradient(options: LinearGradientOptions): LinearGradient;

Parameters#

ParameterType
optionsLinearGradientOptions

Returns#

LinearGradient

Overrides#

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
frompublicVec2Start point.-gradient.ts:267
spacereadonlyColorSpaceInterpolation space.Gradient.spacegradient.ts:136
topublicVec2End point.-gradient.ts:269
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:142