Skip to content
pixi-silk
GitHub repository
Class

RadialGradient

import { RadialGradient } from 'pixi-silk';

A ramp from a centre outwards, optionally starting at an inner radius. Create it with radial.

Extends#

Constructors#

Constructor#

new RadialGradient(options: RadialGradientOptions): RadialGradient;

Parameters#

ParameterType
optionsRadialGradientOptions

Returns#

RadialGradient

Overrides#

Gradient.constructor

Properties#

PropertyModifierTypeDescriptionInherited fromDefined in
centerpublicVec2Centre of the ramp.-gradient.ts:315
easingreadonlyEasingHow the ramp moves between stops.Gradient.easinggradient.ts:149
extendreadonlyExtendModeWhat the gradient does outside 0..1.Gradient.extendgradient.ts:151
innerRadiuspublicnumberRadius where the ramp starts.-gradient.ts:319
radiuspublicnumberRadius where the ramp ends.-gradient.ts:317
spacereadonlyColorSpaceInterpolation space.Gradient.spacegradient.ts:147
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:153