
## create_linear_gradient_brush {#aspose.pydrawing.RectangleF-list}

Creates a linear gradient brush with the specified parameters.


### Returns 


The created [`ILinearGradientBrush`](/html/python-net/aspose.html.drawing/ilineargradientbrush).


```python
def create_linear_gradient_brush(self, rect, colors):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| rect | aspose.pydrawing.RectangleF | The rectangle defining the gradient bounds. |
| colors | list | The interpolation colors for the gradient. See [`IInterpolationColor`](/html/python-net/aspose.html.drawing/iinterpolationcolor). |



### See Also
* module [`aspose.html.drawing`](../../)
* class [`IDrawingFactory`](/html/python-net/aspose.html.drawing/idrawingfactory)
* class [`IInterpolationColor`](/html/python-net/aspose.html.drawing/iinterpolationcolor)
* class [`ILinearGradientBrush`](/html/python-net/aspose.html.drawing/ilineargradientbrush)
