Lines Matching refs:cr
48 set_random_color(cairo_t *cr) in set_random_color() argument
50 cairo_set_source_rgba(cr, in set_random_color()
67 cairo_t *cr; in draw_stuff() local
72 cr = cairo_create(surface); in draw_stuff()
73 cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); in draw_stuff()
74 cairo_set_source_rgba(cr, 0, 0, 0, 0); in draw_stuff()
75 cairo_paint(cr); in draw_stuff()
77 cairo_set_operator(cr, CAIRO_OPERATOR_OVER); in draw_stuff()
78 cairo_translate(cr, width / 2, height / 2); in draw_stuff()
79 cairo_move_to(cr, cos(0) * r1, sin(0) * r1); in draw_stuff()
88 cairo_curve_to(cr, in draw_stuff()
93 cairo_curve_to(cr, in draw_stuff()
99 cairo_close_path(cr); in draw_stuff()
100 set_random_color(cr); in draw_stuff()
101 cairo_fill_preserve(cr); in draw_stuff()
102 set_random_color(cr); in draw_stuff()
103 cairo_stroke(cr); in draw_stuff()
105 cairo_destroy(cr); in draw_stuff()