summaryrefslogtreecommitdiff
path: root/include/constants/rgb.h
blob: 2c22df32a4d06a4888fcb14b6b306d9e041a073d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef GUARD_RGB_H
#define GUARD_RGB_H

#define RGB(r, g, b) ((r) | ((g) << 5) | ((b) << 10))

#define RGB_BLACK RGB(0, 0, 0)
#define RGB_WHITE RGB(31, 31, 31)
#define RGB_RED RGB(31, 0, 0)
#define RGB_GREEN RGB(0, 31, 0)
#define RGB_BLUE RGB(0, 0, 31)
#define RGB_YELLOW RGB(31, 31, 0)
#define RGB_MAGENTA RGB(31, 0, 31)
#define RGB_CYAN RGB(0, 31, 31)

#endif // GUARD_RGB_H