
## add(position, color) {#DoubleValue-ColorValue}

Add a gradient stop.



```python
def add(self, position, color):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| position | [DoubleValue](/diagram/python-net/aspose.diagram/doublevalue) | The position of the stop,in unit of percentage. |
| color | [ColorValue](/diagram/python-net/aspose.diagram/colorvalue) | The color of the stop. |



### See Also
* module [aspose.diagram](../../)
* class [GradientStopCollection](/diagram/python-net/aspose.diagram/gradientstopcollection)
