diff --git a/examples/cluster.c b/examples/cluster.c index 4ac3e6a..06eace0 100644 --- a/examples/cluster.c +++ b/examples/cluster.c @@ -19,6 +19,8 @@ static void draw_needle(cairo_t *cr, cairo_move_to(cr, x, y); + cairo_set_source_rgb(cr, 0, 0.25, 1.0); + cairo_line_to(cr, x + r * cos((M_PI/180.0) * angle), y + r * sin((M_PI/180.0) * angle)); @@ -43,11 +45,12 @@ static void redraw(cairo_t *ctx) { /* * Draw a gauge needle */ - draw_needle(ctx, 208, 240, 176, 240, 480, 0.0); + draw_needle(ctx, 208, 240, 176, 232, 502, 0.0); /* * Draw another circle */ + cairo_set_source_rgb(ctx, 1, 1, 1); cairo_arc(ctx, 816, 240, 192, 0, 360); cairo_stroke(ctx);