-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcolour.h
More file actions
44 lines (40 loc) · 762 Bytes
/
Copy pathcolour.h
File metadata and controls
44 lines (40 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef COLOUR_H
#define COLOUR_H
enum colour_t
{
COLOUR_BLACK,
COLOUR_NAVY,
COLOUR_GREEN,
COLOUR_TEAL,
COLOUR_MAROON,
COLOUR_PURPLE,
COLOUR_GOLD,
COLOUR_SILVER,
COLOUR_GREY,
COLOUR_BLUE,
COLOUR_LIME,
COLOUR_AQUA,
COLOUR_RED,
COLOUR_PINK,
COLOUR_YELLOW,
COLOUR_WHITE
};
#define TAG_BLACK "&0"
#define TAG_NAVY "&1"
#define TAG_GREEN "&2"
#define TAG_TEAL "&3"
#define TAG_MAROON "&4"
#define TAG_PURPLE "&5"
#define TAG_GOLD "&6"
#define TAG_SILVER "&7"
#define TAG_GREY "&8"
#define TAG_BLUE "&9"
#define TAG_LIME "&a"
#define TAG_AQUA "&b"
#define TAG_RED "&c"
#define TAG_PINK "&d"
#define TAG_YELLOW "&e"
#define TAG_WHITE "&f"
enum colour_t str_to_colour(const char *s);
const char *colour_to_str(enum colour_t c);
#endif /* COLOUR_H */