summaryrefslogtreecommitdiff
path: root/src/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.h')
-rw-r--r--src/color.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/color.h b/src/color.h
new file mode 100644
index 0000000..11516f0
--- /dev/null
+++ b/src/color.h
@@ -0,0 +1,19 @@
+#ifndef COLOR_H
+#define COLOR_H
+
+typedef struct COLOR {
+ unsigned char red;
+ unsigned char green;
+ unsigned char blue;
+} COLOR;
+
+static inline COLOR createColor(unsigned char red, unsigned char green, unsigned char blue) {
+ // Create a color given values
+ COLOR temp;
+ temp.red = red;
+ temp.green = green;
+ temp.blue = blue;
+ return temp;
+}
+
+#endif // COLOR_H