Skip to content

Commit c447840

Browse files
committed
small tails for rolling balls
1 parent ccf1b04 commit c447840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wled00/FX.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3048,7 +3048,8 @@ static uint16_t rolling_balls(void) {
30483048
float cfac = float(scale8(8, 255-SEGMENT.speed) +1)*20000.0f; // this uses the Aircoookie conversion factor for scaling time using speed slider
30493049

30503050
bool hasCol2 = SEGCOLOR(2);
3051-
if (!SEGMENT.check2) SEGMENT.fill(hasCol2 ? BLACK : SEGCOLOR(1));
3051+
//if (!SEGMENT.check2) SEGMENT.fill(hasCol2 ? BLACK : SEGCOLOR(1));
3052+
if (!SEGMENT.check2) SEGMENT.fade_out(253); // WLEDMM adding a bit of trail
30523053

30533054
for (int i = 0; i < numBalls; i++) {
30543055
float timeSinceLastUpdate = float((strip.now - balls[i].lastBounceUpdate))/cfac;

0 commit comments

Comments
 (0)