insertPresetColor
insertPresetColor(int index, float position, int presetColor) function
Creates the new gradient stop and inserts it at the specified index to the collection.
Parameters
Name | Type | Description |
---|---|---|
index | int | Index in the collection where new gradient stop will be inserted. |
position | float | Position of the new gradient stop. |
presetColor | int | Color of the new radient stop. |