From 8bb9c7ebf9d902774134bc6aa94b0886fbf82933 Mon Sep 17 00:00:00 2001 From: foswret Date: Mon, 10 Nov 2025 23:13:02 -0600 Subject: moved all drawing functions to /include --- include/color.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/color.h') 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); } -- cgit v1.2.3