FX intensity slider to desaturate Color in Colorloop FX (#585)

This commit is contained in:
Def3nder 2020-01-13 18:29:34 +01:00 committed by Aircoookie
parent 2e9b59e2e0
commit 7fe5f8907e

View File

@ -350,7 +350,11 @@ uint16_t WS2812FX::mode_rainbow(void) {
uint16_t counter = (now * ((SEGMENT.speed >> 3) +2)) & 0xFFFF; uint16_t counter = (now * ((SEGMENT.speed >> 3) +2)) & 0xFFFF;
counter = counter >> 8; counter = counter >> 8;
if (SEGMENT.intensity < 128){
fill(color_blend(color_wheel(counter),WHITE,128-SEGMENT.intensity));
} else {
fill(color_wheel(counter)); fill(color_wheel(counter));
}
return FRAMETIME; return FRAMETIME;
} }