add inverse gamma 32 function and fix colors in pride (#4722)

* add inverse gamma 32 function and fix for colors in pride
This commit is contained in:
Damian Schneider
2025-06-11 08:30:25 +02:00
committed by GitHub
parent 00d1fcc5fb
commit 05f0630b9c
4 changed files with 19 additions and 2 deletions

View File

@@ -1918,7 +1918,8 @@ uint16_t mode_colorwaves_pride_base(bool isPride2015) {
bri8 += (255 - brightdepth);
if (isPride2015) {
CRGB newcolor = CHSV(hue8, sat8, bri8);
CRGBW newcolor = CRGB(CHSV(hue8, sat8, bri8));
newcolor.color32 = gamma32inv(newcolor.color32);
SEGMENT.blendPixelColor(i, newcolor, 64);
} else {
SEGMENT.blendPixelColor(i, SEGMENT.color_from_palette(hue8, false, PALETTE_SOLID_WRAP, 0, bri8), 128);