blob: 0f670239c293734daac152ae5bb324c06b6c7d35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 */
|