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):
    ...
ParameterTypeDescription
valuefloatThe offset value of the color stop (0 to 1 for numbers, 0% to 100% for percentages).
unit_typeStopUnitTypeThe unit type of the offset value (number or percentage).

See Also