---
title: "offset method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.builder/svgstopelementbuilder/offset/"
product: "Aspose.SVG for Python via .NET API References"
---


## offset {#float-aspose.svg.builder.StopUnitType}

Sets the 'offset' attribute of the SVG 'stop' element, specifying the position of the color stop within the gradient.


### Returns 


The current instance of SVGStopElementBuilder for method chaining.


```python
def offset(self, value, unit_type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | float | The offset value of the color stop (0 to 1 for numbers, 0% to 100% for percentages). |
| unit_type | [`StopUnitType`](/svg/python-net/aspose.svg.builder/stopunittype) | The unit type of the offset value (number or percentage). |



### See Also
* module [`aspose.svg.builder`](../../)
* class [`SVGStopElementBuilder`](/svg/python-net/aspose.svg.builder/svgstopelementbuilder)
