insert

insert(int index, float position, Color color) function

Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters

NameTypeDescription
indexintIndex in the collection where new gradient stop will be inserted.
positionfloatPosition of the new gradient stop.
colorColorColor of the new radient stop.