aboutsummaryrefslogtreecommitdiff
path: root/include/color.h
diff options
context:
space:
mode:
authorfoswret <foswret@posteo.com>2025-11-10 23:13:02 -0600
committerfoswret <foswret@posteo.com>2025-11-10 23:13:02 -0600
commit8bb9c7ebf9d902774134bc6aa94b0886fbf82933 (patch)
tree5fbf5947592a62648e3d9ba38ecbddcf94114023 /include/color.h
parentd6ff91295f1a6eb5f6f8a7e77c66d4c9cba694ac (diff)
moved all drawing functions to /include
Diffstat (limited to 'include/color.h')
-rw-r--r--include/color.h9
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);
}