diff options
| author | foswret <foswret@posteo.com> | 2025-11-06 11:51:28 -0600 |
|---|---|---|
| committer | foswret <foswret@posteo.com> | 2025-11-06 11:51:28 -0600 |
| commit | 258532d738791a69a1db7df27849cd8d8ab0464e (patch) | |
| tree | 300af1864a9bf0212f832a20323bdd37a69cfc87 /include/color.h | |
first commit
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 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); + } |
