tinygo-org/tinydraw

FilledTriangle divide by zero

Closed this issue · 1 comments

While investigating #9 I ran into several divide by zero issues.
I checked the original Adafruit code and found an error in the translation the y variable is reset to last when it should be last+1 from the previous loop.

I created a pull request with the fix. Unfortunately this still doesn't fix #9 but malformed triangles are better than a panic

Fixed by #11.