summaryrefslogtreecommitdiff
path: root/examples/cairo_snippets/snippets/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cairo_snippets/snippets/path.py')
-rwxr-xr-xexamples/cairo_snippets/snippets/path.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/cairo_snippets/snippets/path.py b/examples/cairo_snippets/snippets/path.py
new file mode 100755
index 0000000..cce8aec
--- /dev/null
+++ b/examples/cairo_snippets/snippets/path.py
@@ -0,0 +1,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 ()