Skip to content
pixi-silk
GitHub repository
Class

LinearGradient

import { LinearGradient } from 'pixi-silk';

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:149
extendreadonlyExtendModeWhat the gradient does outside 0..1.Gradient.extendgradient.ts:151
frompublicVec2Start point.-gradient.ts:278
spacereadonlyColorSpaceInterpolation space.Gradient.spacegradient.ts:147
topublicVec2End point.-gradient.ts:280
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:153