add

add(float position, Color color) method

Creates the new gradient stop and adds it to the end of collection.

Parameters

NameTypeDescription
positionfloatPosition of the new gradient stop.
colorColorColor of the new radient stop.

Returns

GradientStop