I have a drawing where I paint like this:
// ******** Drawing the background ********* \
// Setting the color for the background
cairo_set_source_rgba(cr, 1, 1, 1, 1);
// Setting a rectangle
cairo_rectangle (cr, 0, 0, 200, 200);
cairo_stroke_preserve(cr);
cairo_fill(cr);
cairo_save(cr);
When I paint again on the background in this way (example only):
//Painting the signal
cairo_set_source_rgb(cr, 0, 0, 1);
cairo_move_to(cr, 10, 10);
cairo_line_to(cr, 20, 20);
cairo_stroke(cr);
The color, in this case blue, is not blue rgb (0,0,1) due to the white background. My question is: if I want a white background but the color of the blue line rgb (0,0,1), how do I do it?
Thank you.