addPresetColor
addPresetColor(float position, int presetColor) method
Creates the new gradient stop and adds it to the end of collection.
Parameters
| Name | Type | Description |
|---|---|---|
| position | float | Position of the new gradient stop. |
| presetColor | int | Color of the new radient stop. |