Debian Codegraph @

examples/cairo_snippets/snippets/path.py

raw symbols SCIP
1 def draw(cr, width, height):
2 cr.scale(width, height)
3 cr.set_line_width(0.04)
4
5 cr.move_to(0.5, 0.1)
6 cr.line_to(0.9, 0.9)
7 cr.rel_line_to(-0.4, 0.0)
8 cr.curve_to(0.2, 0.9, 0.2, 0.5, 0.5, 0.5)
9
10 cr.stroke()