From 36d72aed1800f3e2c514bf264164a6f2a6ba5f5e Mon Sep 17 00:00:00 2001 From: foswret Date: Tue, 18 Nov 2025 14:59:54 -0600 Subject: removed /include, moved some stuff around --- color.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 color.h (limited to 'color.h') diff --git a/color.h b/color.h new file mode 100644 index 0000000..e2b4cc0 --- /dev/null +++ b/color.h @@ -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); + } -- cgit v1.2.3