Skip to content

Commit

Permalink
Pinwheel changes.
Browse files Browse the repository at this point in the history
Jump distance for odd rays fixed. Removed holes on rectangular matrices.
  • Loading branch information
Brandon502 committed May 12, 2024
1 parent f26bb26 commit 9e0b91a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,9 @@ void IRAM_ATTR Segment::setPixelColor(int i, uint32_t col)

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

Expand Down

0 comments on commit 9e0b91a

Please sign in to comment.