summaryrefslogtreecommitdiff
path: root/src/Color.h
blob: 96aa03b84459326c96cfb2c75d4a52848c3c6a64 (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 const char* color_names[];
};

#endif /* COLOR_H */