ledgfx.h has a cosmetic bug
mayhem2408 opened this issue · comments
John commented
In both the DrawFanPixels and DrawPixels functions in the ledgfx.h and previous examples in the main.cpp, the test for the middle pixel, which reads
while (remaining > 1.0f) {
This will skip over drawing the middle pixel if remaining = 1.0f. This means the third pixel will get the full intensity pixel instead of the second/middle pixel. I believe it should read
while (remaining >= 1.0f) {