Methods

add(position, color, alpha)

Add a gradient stop.

Parameters

Name Type Optional Description

position

DoubleValue

 

The position of the stop,in unit of percentage.

color

ColorValue

 

The color of the stop.

alpha

 

 

The alpha of the color.

clear()

get(index) → GradientStop

Gets the gradient stop by the index.

Parameter

Name Type Optional Description

index

Number

 

The index.

Returns

GradientStop The gradient stop.

getCount()

iterator()

Reserved for internal use.

removeAt()

set(index) → GradientStop

Gets the gradient stop by the index.

Parameter

Name Type Optional Description

index

Number

 

The index.

Returns

GradientStop The gradient stop.