Pinwheel changes.

Jump distance for odd rays fixed. Removed holes on rectangular matrices.
This commit is contained in:
Brandon502 2024-05-12 17:46:42 -04:00
parent f26bb26ffa
commit 9e0b91ac17

View File

@ -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;