aboutsummaryrefslogtreecommitdiff
path: root/include/color.h
blob: f7ac9916585eafe1dca13b4bbcf426a61eaa9e31 (plain)
1
2
3
4
5
6
7
8
9
 int set_color(cairo_t *c, char *str) {
 	if (strcmp("BLACK", str) == 0) {
 		cairo_set_source_rgb (c, 0.0, 0.0, 0.0);
 	}
 	if (strcmp("BLUE", str) == 0) {
 		cairo_set_source_rgb (c, 0.0, 0.0, 255.0);
 	}
 	return(0);
 }