RadialGradient

gradient. RadialGradient

new RadialGradient(stops, radius, matrix, units, fx, fy)

Constructs a RadialGradient instance
Parameters:
Name Type Description
stops Array Color stops in the form: `['red','yellow',...]` or `[['red', 0], ['green', 50], ['#FFF', 100]]` i.e. Sub-array [0] is color and [1] is percentage
radius number Radius in percentage
matrix Matrix Matrix transform for gradient
units String Either 'userSpace' or 'boundingBox'.
fx Number Focal x coordinate
fy Number Focal y coordinate

Methods

clone() → {RadialGradient}

Clones the instance, returning a new one
Returns:
The clone
Type
RadialGradient