module:RadialGradient

Radial-gradient class
radial-gradient demo

Constructor

new module:RadialGradient(positionDefinition, radius, colorStops)

Radial-gradient constructor

Parameters:
NameTypeDescription
positionDefinitionPositionDefinition

Center of the gradient

radiusNumber

Radius of the gradient

colorStopsObject

Set of colors to go through (key is position [from 0 to 1], value is the color)

Example
new RadialGradient(from, radius, { 0: "red", 1: "green" });