FX intensity slider to desaturate Color in Colorloop FX (#585)
This commit is contained in:
parent
2e9b59e2e0
commit
7fe5f8907e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user