add method

add(position, color)

Add a gradient stop.

def add(self, position, color):
    ...
ParameterTypeDescription
positionDoubleValueThe position of the stop,in unit of percentage.
colorColorValueThe color of the stop.

See Also