sr method

sr

Adds a relative ‘Smooth Cubic Bezier Curve To’ command to the path data.

Returns

The current PathBuilder instance.

def sr(self, x2, y2, x, y):
    ...
ParameterTypeDescription
x2floatThe x-coordinate of the second control point, relative to the current position.
y2floatThe y-coordinate of the second control point, relative to the current position.
xfloatThe x-coordinate of the end point of the curve, relative to the current position.
yfloatThe y-coordinate of the end point of the curve, relative to the current position.

See Also