line_to method

line_to

Adds a straight line segment from the current point to the specified coordinates.

def line_to(self, x, y):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the destination point.
yfloatThe y-coordinate of the destination point.

See Also