def line_angle(position, angle, distance): p = Path() x1, y1 = coordinates(position.x, position.y, distance, angle) p.line(position.x, position.y, x1, y1) p.strokeColor = Color.BLACK p.strokeWidth = 1 return p
def line(point1, point2): p = Path() p.line(point1.x, point1.y, point2.x, point2.y) p.strokeColor = Color.BLACK p.strokeWidth = 1 return p