diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/color.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/color.h b/include/color.h new file mode 100644 index 0000000..f7ac991 --- /dev/null +++ b/include/color.h @@ -0,0 +1,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); + } |
