Skip to content
GitHub repository
Class

ConicGradient

An angular ramp around a centre. On arcs it follows the arc. Create it with conic.

Extends#

Constructors#

Constructor#

new ConicGradient(options: ConicGradientOptions): ConicGradient;

Parameters#

ParameterType
optionsConicGradientOptions

Returns#

ConicGradient

Overrides#

Gradient.constructor

Properties#

PropertyModifierTypeDescriptionInherited fromDefined in
centerpublicVec2Centre of the ramp.-gradient.ts:347
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
startAngle?publicnumberAngle where the ramp starts. Unset follows the arc, or 12 o’clock for other shapes.-gradient.ts:349
sweep?publicnumberAngular length of the ramp. Unset follows the arc, or a full turn for other shapes.-gradient.ts:351
unitsreadonlyGradientUnitsCoordinates of the gradient’s points and radii.Gradient.unitsgradient.ts:142