diff options
Diffstat (limited to 'src/Color.h')
-rw-r--r-- | src/Color.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Color.h b/src/Color.h new file mode 100644 index 0000000..0f67023 --- /dev/null +++ b/src/Color.h @@ -0,0 +1,18 @@ + +#ifndef COLOR_H +#define COLOR_H + +enum class Color { GRAY, RED, BLUE, GREEN, PURPLE, YELLOW, CYAN, ORANGE }; + +class Colors { +public: + static Color read_color(char* s); + static void to_rgb(Color c, unsigned char* r, unsigned char* g, unsigned char* b); +private: + static unsigned get_color(Color c); + static unsigned colors[]; + static char* color_names[]; +}; + +#endif /* COLOR_H */ + |