add_color_stop method

add_color_stop

Adds a new stop, defined by an offset and a color, to the gradient.

def add_color_stop(self, offset, color):
    ...
ParameterTypeDescription
offsetfloatA number between 0 and 1.
colorstrA CSS color

See Also