Skip to content
GitHub repository
Class

RadialGradient

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:304
easingreadonlyEasingHow the ramp moves between stops.Gradient.easinggradient.ts:138
extendreadonlyExtendModeWhat the gradient does outside 0..1.Gradient.extendgradient.ts:140
innerRadiuspublicnumberRadius where the ramp starts.-gradient.ts:308
radiuspublicnumberRadius where the ramp ends.-gradient.ts:306
spacereadonlyColorSpaceInterpolation space.Gradient.spacegradient.ts:136
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:142