add

add(position, color)

Add a gradient stop.

ParameterTypeDescription
positionDoubleValueThe position of the stop,in unit of percentage.
colorColorValueThe color of the stop.
alphaThe alpha of the color.