From b53f9ac4b05a2ac500e71355fdb550a112c90ace Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 14 Jun 2023 22:04:32 +0200 Subject: [PATCH] 2d Lissajous: make fade-out work "Fade rate" slider works now. --- wled00/FX.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 06b6ba52..f4ef6dcb 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -5096,7 +5096,9 @@ uint16_t mode_2DLissajous(void) { // By: Andrew Tuline const uint16_t cols = SEGMENT.virtualWidth(); const uint16_t rows = SEGMENT.virtualHeight(); + if (SEGENV.call == 0) { SEGMENT.setUpLeds(); SEGMENT.fill(BLACK);} // WLEDMM fadeToBlackBy() needs previous setUpLeds() SEGMENT.fadeToBlackBy(SEGMENT.intensity); + uint_fast16_t phase = (strip.now * (1 + SEGENV.custom3)) /32; // allow user to control rotation speed if (SEGENV.check3) { // WLEDMM: this is the original "float" code featuring anti-aliasing