From 84148ad07a7ac94993dc9dfd0bdc6d7a8d9e47ac Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sun, 3 Sep 2023 12:34:17 +0200 Subject: [PATCH] Implement palette colors --- wled00/FX.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index fd71098a..de846778 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -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); }