Skip to content

Commit

Permalink
Implement palette colors
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Sep 3, 2023
1 parent af3c8f6 commit 84148ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2931,7 +2931,8 @@ static uint16_t rolling_balls(void) {

uint32_t color = SEGCOLOR(0);
if (SEGMENT.palette) {
color = SEGMENT.color_wheel(i*(256/MAX(numBalls, 8)));
//color = SEGMENT.color_wheel(i*(256/MAX(numBalls, 8)));
color = SEGMENT.color_from_palette(i*255/numBalls, false, PALETTE_SOLID_WRAP, 0);
} else if (hasCol2) {
color = SEGCOLOR(i % NUM_COLORS);
}
Expand Down

0 comments on commit 84148ad

Please sign in to comment.