Source

wxPython / demo / snippets / path.py

1
2
3
4
5
6
7
snippet_normalize (cr, width, height)
cr.move_to (0.5, 0.1)
cr.line_to (0.9, 0.9)
cr.rel_line_to (-0.4, 0.0)
cr.curve_to (0.2, 0.9, 0.2, 0.5, 0.5, 0.5)

cr.stroke ()