aboutsummaryrefslogtreecommitdiff
path: root/quantum/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/color.h')
-rw-r--r--quantum/color.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/quantum/color.h b/quantum/color.h
index 81a2c1e7ba..5c23b25335 100644
--- a/quantum/color.h
+++ b/quantum/color.h
@@ -74,19 +74,24 @@
// clang-format on
-typedef struct PACKED rgb_led_t {
+typedef struct PACKED rgb_t {
uint8_t r;
uint8_t g;
uint8_t b;
-} rgb_led_t;
+} rgb_t;
-typedef rgb_led_t RGB;
+// DEPRECATED
+typedef rgb_t RGB;
+typedef rgb_t rgb_led_t;
-typedef struct PACKED HSV {
+typedef struct PACKED hsv_t {
uint8_t h;
uint8_t s;
uint8_t v;
-} HSV;
+} hsv_t;
-RGB hsv_to_rgb(HSV hsv);
-RGB hsv_to_rgb_nocie(HSV hsv);
+// DEPRECATED
+typedef hsv_t HSV;
+
+rgb_t hsv_to_rgb(hsv_t hsv);
+rgb_t hsv_to_rgb_nocie(hsv_t hsv);