x2 method

x2

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

Returns

The current instance of SVGLinearGradientElementBuilder for method chaining.

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

See Also