mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 22:37:18 +00:00
Pinwheel changes.
Jump distance for odd rays fixed. Removed holes on rectangular matrices.
This commit is contained in:
parent
f26bb26ffa
commit
9e0b91ac17
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user