diff options
Diffstat (limited to 'include/color.h')
| -rw-r--r-- | include/color.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/color.h b/include/color.h index f7ac991..e2b4cc0 100644 --- a/include/color.h +++ b/include/color.h @@ -2,8 +2,17 @@ if (strcmp("BLACK", str) == 0) { cairo_set_source_rgb (c, 0.0, 0.0, 0.0); } + if (strcmp("RED", str) == 0) { + cairo_set_source_rgb (c, 255.0, 0.0, 0.0); + } + if (strcmp("GREEN", str) == 0) { + cairo_set_source_rgb (c, 0.0, 255.0, 0.0); + } if (strcmp("BLUE", str) == 0) { cairo_set_source_rgb (c, 0.0, 0.0, 255.0); } + if (strcmp("GREY", str) == 0) { + cairo_set_source_rgb (c, 128.0, 128.0, 128.0); + } return(0); } |
