LinearGradient

gradient. LinearGradient

new LinearGradient

Constructs a LinearGradient instance
Parameters:
Name Type Description
direction Number The direction of the gradient in degrees
stops Array An array of arrays, each sub-array in the form: `[color, percentageOffset]`
matrix Matrix The transformation matrix for the gradient.
units String Either "boundingBox" or "userSpace"

Methods

clone

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