summaryrefslogtreecommitdiffstats
path: root/users/konstantin/rgb.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/konstantin/rgb.h')
-rw-r--r--users/konstantin/rgb.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/users/konstantin/rgb.h b/users/konstantin/rgb.h
new file mode 100644
index 000000000..53b5821b0
--- /dev/null
+++ b/users/konstantin/rgb.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "quantum.h"
+
+typedef struct {
+ uint16_t h; // 0–360
+ uint8_t s; // 0–255
+ uint8_t v; // 0–255
+} hsv_t;
+
+typedef struct {
+ uint8_t r; // 0–255
+ uint8_t g; // 0–255
+ uint8_t b; // 0–255
+} rgb_t;
+
+extern const hsv_t GODSPEED_BLUE;
+extern const hsv_t GODSPEED_YELLOW;