From ebd81999b71ada201a316060fa47a7a66a277935 Mon Sep 17 00:00:00 2001 From: Simponic Date: Tue, 4 Aug 2020 23:36:21 -0600 Subject: Added files --- src/color.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/color.h (limited to 'src/color.h') 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 -- cgit v1.2.3-70-g09d2