| 1 |
import cairo |
| 2 |
|
| 3 |
|
| 4 |
def draw(cr, width, height): |
| 5 |
cr.scale(width, height) |
| 6 |
cr.set_line_width(0.04) |
| 7 |
|
| 8 |
cr.set_line_width(0.16) |
| 9 |
cr.move_to(0.3, 0.33) |
| 10 |
cr.rel_line_to(0.2, -0.2) |
| 11 |
cr.rel_line_to(0.2, 0.2) |
| 12 |
cr.set_line_join(cairo.LINE_JOIN_MITER) |
| 13 |
cr.stroke() |
| 14 |
|
| 15 |
cr.move_to(0.3, 0.63) |
| 16 |
cr.rel_line_to(0.2, -0.2) |
| 17 |
cr.rel_line_to(0.2, 0.2) |
| 18 |
cr.set_line_join(cairo.LINE_JOIN_BEVEL) |
| 19 |
cr.stroke() |
| 20 |
|
| 21 |
cr.move_to(0.3, 0.93) |
| 22 |
cr.rel_line_to(0.2, -0.2) |
| 23 |
cr.rel_line_to(0.2, 0.2) |
| 24 |
cr.set_line_join(cairo.LINE_JOIN_ROUND) |
| 25 |
cr.stroke() |