line_to method

line_to

Connects the last point in the subpath to the x, y coordinates with a straight line.

def line_to(self, x, y):
    ...
ParameterTypeDescription
xfloatThe x axis of the coordinate for the end of the line.
yfloatThe y axis of the coordinate for the end of the line.

See Also