Class: GradientColor

GradientColor

GradientColor
Stores gradient color information.


new GradientColor(type, direction, numStops, gradientStopList)

Parameters:
Name Type Description
type

The gradient type, must be "linear".

direction

A #Direction object for the direction of the gradient
(up, down, right, or left).

numStops

The number of stops in the gradient.

gradientStopList

An array of #GradientStop objects.

Source:
Returns:

A new GradientColor object.