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):
...
Parameter | Type | Description |
---|---|---|
offset | float | A number between 0 and 1. |
color | str | A CSS color |
See Also
- module
aspose.html.dom.canvas
- class
ICanvasGradient