x1 method

x1

Sets the ‘x1’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the start point of the gradient.

Returns

The current instance of SVGLinearGradientElementBuilder for method chaining.

def x1(self, value, type):
    ...
ParameterTypeDescription
valuefloatThe x-coordinate of the gradient’s start point.
typeLengthTypeThe unit of measurement for the x-coordinate (default is pixels).

See Also