offset method
offset
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.
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 | The unit type of the offset value (number or percentage). |
See Also
- module
aspose.svg.builder
- class
SVGStopElementBuilder