diff options
| author | foswret <foswret@posteo.com> | 2025-11-18 14:59:54 -0600 |
|---|---|---|
| committer | foswret <foswret@posteo.com> | 2025-11-18 14:59:54 -0600 |
| commit | 36d72aed1800f3e2c514bf264164a6f2a6ba5f5e (patch) | |
| tree | 44aacb0804660a8363d1e7d2c1e1974bab569038 /color.h | |
| parent | 8bb9c7ebf9d902774134bc6aa94b0886fbf82933 (diff) | |
removed /include, moved some stuff around
Diffstat (limited to 'color.h')
| -rw-r--r-- | color.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ + 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("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); + } |
