GradientStopCollection

GradientStopCollection class

Represents the gradient stop collection.

Methods

NameDescription
add(position, color, alpha)Add a gradient stop.
add(position, color, alpha)Add a gradient stop.
add()Reserved for internal use.
clear()
contains()Reserved for internal use.
get(index)Gets the gradient stop by the index.
get()Reserved for internal use.
getCount()
indexOf()Reserved for internal use.
iterator()
removeAt()

add(position, color, alpha)

Add a gradient stop.

ParameterTypeDescription
positionNumberThe position of the stop,in unit of percentage.
colorCellsColorThe color of the stop.
alphaNumberThe alpha of the color.

add(position, color, alpha)

Add a gradient stop.

ParameterTypeDescription
positionNumberThe position of the stop,in unit of percentage.
colorColorThe color of the stop.
alphaNumberThe alpha of the color.

add()

Reserved for internal use.

clear()

contains()

Reserved for internal use.

get(index)

Gets the gradient stop by the index.

ParameterTypeDescription
indexNumberThe index.

Returns: GradientStop — GradientStop The gradient stop.

get()

Reserved for internal use.

getCount()

indexOf()

Reserved for internal use.

iterator()

removeAt()