We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ripple_base()
1 parent 4cc2cc4 commit 2703c98Copy full SHA for 2703c98
wled00/FX.cpp
@@ -2506,9 +2506,9 @@ static uint16_t ripple_base() {
2506
#endif
2507
{
2508
int left = rippleorigin - propI -1;
2509
- int right = rippleorigin + propI +3;
+ int right = rippleorigin + propI +2;
2510
for (int v = 0; v < 4; v++) {
2511
- unsigned mag = scale8(cubicwave8((propF>>2)+(v-left)*64), amp);
+ unsigned mag = scale8(cubicwave8((propF>>2) + v * 64), amp);
2512
SEGMENT.setPixelColor(left + v, color_blend(SEGMENT.getPixelColor(left + v), col, mag)); // TODO
2513
SEGMENT.setPixelColor(right - v, color_blend(SEGMENT.getPixelColor(right - v), col, mag)); // TODO
2514
}
0 commit comments