aboutsummaryrefslogtreecommitdiff
path: root/quantum/color.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-10-12 10:10:02 +1100
committerGitHub <noreply@github.com>2024-10-12 00:10:02 +0100
commit6129af93f497077a994e8e41473e2bd3d6ea5e67 (patch)
tree68de5019339936b281fe337a5d8e5273f8b7dec5 /quantum/color.h
parenta10e7cc8582114267ab474a0049619b510199322 (diff)
Rename RGB and HSV structs (#24471)
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);