Skip to content

Commit

Permalink
FX intensity slider to desaturate Color in Colorloop FX (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Def3nder authored and Aircoookie committed Jan 13, 2020
1 parent 2e9b59e commit 7fe5f89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,11 @@ uint16_t WS2812FX::mode_rainbow(void) {
uint16_t counter = (now * ((SEGMENT.speed >> 3) +2)) & 0xFFFF;
counter = counter >> 8;

fill(color_wheel(counter));
if (SEGMENT.intensity < 128){
fill(color_blend(color_wheel(counter),WHITE,128-SEGMENT.intensity));
} else {
fill(color_wheel(counter));
}

return FRAMETIME;
}
Expand Down

0 comments on commit 7fe5f89

Please sign in to comment.