Skip to content

Commit 9e0b91a

Browse files
committed
Pinwheel changes.
Jump distance for odd rays fixed. Removed holes on rectangular matrices.
1 parent f26bb26 commit 9e0b91a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wled00/FX_fcn.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,9 @@ void IRAM_ATTR Segment::setPixelColor(int i, uint32_t col)
762762

763763
// Odd rays start further from center if prevRay started at center.
764764
if ((i % 2 == 1) && (i - 1 == prevRay || i + 1 == prevRay)) {
765-
posx += inc_x * (vW/4);
766-
posy += inc_y * (vH/4);
765+
int jump = min(vW/3, vH/3);
766+
posx += inc_x * jump;
767+
posy += inc_y * jump;
767768
}
768769
prevRay = i;
769770

0 commit comments

Comments
 (0)