line_to method

line_to

Adds a line segment to the current path.

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

See Also