Line
A brief reference to the Line class.
Initialization
line = Line(screen, x1, y1, x2, y2) # Pass two points
line = Line(screen, (x1, y1), (x2, y2)) # Two points as tuples
line = Line(screen, location1, location2) # Two points as LocationsMovement
line.move(dx, dy) # Move both points by dx, dy
line.move(dx, dy, point=1) # Move only the first point by dx, dyline.moveto(x1, y1, x2, y2)
line.moveto((x1, y1), (x2, y2))
line.moveto(location1, location2)line.pos1(location)Location
Rotation
Color
Thickness
Dashes
Length
Visibility
Transform and Cloning
Intersects (Overlaps)
Last updated