(context, x, y, x2, y2)
| 19 | |
| 20 | |
| 21 | def draw_box(context, x, y, x2, y2): |
| 22 | context.set_source_rgb(0.258, 0.525, 0.956) |
| 23 | context.new_path() |
| 24 | context.move_to(x, y) |
| 25 | context.line_to(x2, y) |
| 26 | context.line_to(x, y2) |
| 27 | context.move_to(x2, y2) |
| 28 | context.line_to(x2, y) |
| 29 | context.line_to(x, y2) |
| 30 | context.close_path() |
| 31 | context.fill() |
| 32 | |
| 33 | |
| 34 | if __name__ == "__main__": |