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

@@ -520,7 +520,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
CJSON(strip.autoSegments, light[F("aseg")]);
CJSON(useRainbowWheel, light[F("rw")]);
CJSON(gammaCorrectVal, light["gc"]["val"]); // default 2.8
CJSON(gammaCorrectVal, light["gc"]["val"]); // default 2.2
float light_gc_bri = light["gc"]["bri"];
float light_gc_col = light["gc"]["col"];
if (light_gc_bri > 1.0f) gammaCorrectBri = true;