summaryrefslogtreecommitdiff
path: root/doc/tutorial/src/expander.c
blob: a00865fbdd9bf9c82c5655efc610a54fa87e0d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}