GRASS GIS 7 Programmer's Manual  7.0.4(2016)-r00000
cairodriver/color.c
Go to the documentation of this file.
1 
15 #include "cairodriver.h"
16 
27 void Cairo_Color(int r, int g, int b)
28 {
29  G_debug(3, "Cairo_Color: %d,%d,%d", r, g, b);
30 
31  cairo_set_source_rgba(cairo,
32  CAIROCOLOR(r), CAIROCOLOR(g), CAIROCOLOR(b), 1.0);
33 
34  G_debug(3, "Set color to: %g %g %g",
35  CAIROCOLOR(r), CAIROCOLOR(g), CAIROCOLOR(b));
36 }
#define CAIROCOLOR(a)
Definition: cairodriver.h:49
double b
cairo_t * cairo
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition: debug.c:65
float g
Definition: named_colr.c:8
GRASS cairo display driver - header file.
void Cairo_Color(int r, int g, int b)
Set source color (opaque)
double r