Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Pinwheel Expand 1D Effect #3961

Merged
merged 18 commits into from
May 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pinwheel changes.
Jump distance for odd rays fixed. Removed holes on rectangular matrices.
  • Loading branch information
Brandon502 committed May 12, 2024
commit 9e0b91ac17f4ad84978be399d7c8f066a4508b85
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