addPresetColor

addPresetColor(float position, int presetColor) method

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.

Returns

GradientStop