aboutsummaryrefslogtreecommitdiff
path: root/quantum/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/color.h')
-rw-r--r--quantum/color.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/quantum/color.h b/quantum/color.h
index 4783f6839..e2cfc4692 100644
--- a/quantum/color.h
+++ b/quantum/color.h
@@ -19,6 +19,60 @@
19#include <stdint.h> 19#include <stdint.h>
20#include <stdbool.h> 20#include <stdbool.h>
21 21
22// clang-format off
23
24/*
25 * RGB Colors
26 */
27#define RGB_AZURE 0x99, 0xF5, 0xFF
28#define RGB_BLACK 0x00, 0x00, 0x00
29#define RGB_BLUE 0x00, 0x00, 0xFF
30#define RGB_CHARTREUSE 0x80, 0xFF, 0x00
31#define RGB_CORAL 0xFF, 0x7C, 0x4D
32#define RGB_CYAN 0x00, 0xFF, 0xFF
33#define RGB_GOLD 0xFF, 0xD9, 0x00
34#define RGB_GOLDENROD 0xD9, 0xA5, 0x21
35#define RGB_GREEN 0x00, 0xFF, 0x00
36#define RGB_MAGENTA 0xFF, 0x00, 0xFF
37#define RGB_ORANGE 0xFF, 0x80, 0x00
38#define RGB_PINK 0xFF, 0x80, 0xBF
39#define RGB_PURPLE 0x7A, 0x00, 0xFF
40#define RGB_RED 0xFF, 0x00, 0x00
41#define RGB_SPRINGGREEN 0x00, 0xFF, 0x80
42#define RGB_TEAL 0x00, 0x80, 0x80
43#define RGB_TURQUOISE 0x47, 0x6E, 0x6A
44#define RGB_WHITE 0xFF, 0xFF, 0xFF
45#define RGB_YELLOW 0xFF, 0xFF, 0x00
46#define RGB_OFF RGB_BLACK
47
48/*
49 * HSV Colors
50 *
51 * All values (including hue) are scaled to 0-255
52 */
53#define HSV_AZURE 132, 102, 255
54#define HSV_BLACK 0, 0, 0
55#define HSV_BLUE 170, 255, 255
56#define HSV_CHARTREUSE 64, 255, 255
57#define HSV_CORAL 11, 176, 255
58#define HSV_CYAN 128, 255, 255
59#define HSV_GOLD 36, 255, 255
60#define HSV_GOLDENROD 30, 218, 218
61#define HSV_GREEN 85, 255, 255
62#define HSV_MAGENTA 213, 255, 255
63#define HSV_ORANGE 28, 255, 255
64#define HSV_PINK 234, 128, 255
65#define HSV_PURPLE 191, 255, 255
66#define HSV_RED 0, 255, 255
67#define HSV_SPRINGGREEN 106, 255, 255
68#define HSV_TEAL 128, 255, 128
69#define HSV_TURQUOISE 123, 90, 112
70#define HSV_WHITE 0, 0, 255
71#define HSV_YELLOW 43, 255, 255
72#define HSV_OFF HSV_BLACK
73
74// clang-format on
75
22#if defined(__GNUC__) 76#if defined(__GNUC__)
23# define PACKED __attribute__((__packed__)) 77# define PACKED __attribute__((__packed__))
24#else 78#else