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

### Returns 


The created [`ILinearGradientBrush`](/svg/python-net/aspose.svg.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`](/svg/python-net/aspose.svg.drawing/iinterpolationcolor). |



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