summaryrefslogtreecommitdiff
path: root/doc/tutorial/src/circle.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial/src/circle.c')
-rw-r--r--doc/tutorial/src/circle.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/doc/tutorial/src/circle.c b/doc/tutorial/src/circle.c
deleted file mode 100644
index 6bd02e8ba..000000000
--- a/doc/tutorial/src/circle.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "cairo-tutorial.h"
-
-static void
-draw (cairo_t *cr, int width, int height)
-{
- int radius;
-
- if (width < height)
- radius = width/2 - 4;
- else
- radius = height/2 - 4;
-
- cairo_move_to (cr, width/2 + radius, height/2);
- cairo_arc (cr, width/2, height/2, radius,
- 0.0, 2 * M_PI);
-
- cairo_set_source_rgb (cr, 0.6, 0.8, 1.0);
- cairo_fill_preserve (cr);
-
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_stroke (cr);
-}