
## create_linear_gradient {#float-float-float-float}

Creates a linear gradient along the line given by the coordinates represented by the parameters.


### Returns 


The linear CanvasGradient.


```python
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`](/html/python-net/aspose.html.dom.canvas/icanvasrenderingcontext2d)
