summaryrefslogtreecommitdiff
path: root/doc/tutorial/src/expander.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/src/expander.c')
-rw-r--r--doc/tutorial/src/expander.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/tutorial/src/expander.c b/doc/tutorial/src/expander.c
new file mode 100644
index 00000000..a00865fb
--- /dev/null
+++ b/doc/tutorial/src/expander.c
@@ -0,0 +1,16 @@
+#define WIDTH 50
+#define HEIGHT 50
+
+#include "cairo-tutorial.h"
+
+static void
+draw (cairo_t *cr)
+{
+ cairo_translate (cr, 24.5, 25);
+ cairo_move_to (cr, 5, -2.5);
+ cairo_line_to (cr, 0, 2.5);
+ cairo_line_to (cr, -5, -2.5);
+ cairo_close_path (cr);
+ cairo_set_line_width (cr, 1);
+ cairo_stroke (cr);
+}