draw_line method

draw_line

Draws a line segment.

def draw_line(self, x1, y1, x2, y2):
    ...
ParameterTypeDescription
x1floatX coordinate of the beginning of segment.
y1floatY coordinate of the beginning of segment.
x2floatX coordinate of the end of segment.
y2floatY coordinate of the end of segment.

See Also