add

add(float position, Color color) function

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.

Result

GradientStop