def vline(x, y1, y2): """Draw a vertical line from (x, y1) to (x, y2).""" cogl.path_line(x, y1, x, y2)
def hline(y, x1, x2): """Draw a horizontal line from (x1, y) to (x2, y).""" cogl.path_line(x1, y, x2, y)