addPresetColor

addPresetColor(float position, int presetColor) function

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

Parameters

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

Result

GradientStop