y1 method

y1

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

Returns

The current instance of SVGLinearGradientElementBuilder for method chaining.

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

See Also