1
0

Rename RGB and HSV structs (#24471)

This commit is contained in:
Ryan
2024-10-12 10:10:02 +11:00
committed by GitHub
parent a10e7cc858
commit 6129af93f4
59 changed files with 122 additions and 117 deletions

View File

@@ -19,8 +19,8 @@
#include "progmem.h"
#include "util.h"
RGB hsv_to_rgb_impl(HSV hsv, bool use_cie) {
RGB rgb;
rgb_t hsv_to_rgb_impl(hsv_t hsv, bool use_cie) {
rgb_t rgb;
uint8_t region, remainder, p, q, t;
uint16_t h, s, v;
@@ -97,7 +97,7 @@ RGB hsv_to_rgb_impl(HSV hsv, bool use_cie) {
return rgb;
}
RGB hsv_to_rgb(HSV hsv) {
rgb_t hsv_to_rgb(hsv_t hsv) {
#ifdef USE_CIE1931_CURVE
return hsv_to_rgb_impl(hsv, true);
#else
@@ -105,6 +105,6 @@ RGB hsv_to_rgb(HSV hsv) {
#endif
}
RGB hsv_to_rgb_nocie(HSV hsv) {
rgb_t hsv_to_rgb_nocie(hsv_t hsv) {
return hsv_to_rgb_impl(hsv, false);
}