create_linear_gradient method
create_linear_gradient
Creates a linear gradient along the line given by the coordinates represented by the parameters.
Returns
The linear CanvasGradient.
def create_linear_gradient(self, x0, y0, x1, y1):
...
Parameter | Type | Description |
---|---|---|
x0 | float | The x axis of the coordinate of the start point. |
y0 | float | The y axis of the coordinate of the start point. |
x1 | float | The x axis of the coordinate of the end point. |
y1 | float | The y axis of the coordinate of the end point. |
See Also
- module
aspose.html.dom.canvas
- class
ICanvasRenderingContext2D