Interesting - could be a rounding issue. I know as @allObjects mentioned circles aren't great either.
If anyone wants to have a go at improving fillPoly/fillEllipse then the code's here: https://github.com/espruino/Espruino/blob/master/libs/graphics/graphics.c#L441
You can easily build Espruino 'native' on Linux/Mac/Windows(via Linux subsystem for Windows) and can test using code like this: https://github.com/espruino/Espruino/blob/master/tests/test_graphics_ellipse.js
Or even just a bit of C code all on its own would be appreciated. I can merge it into Espruino as long as it works well (although if you're copying it rather than making your own it'll need to be compatible with MPLv2's license).
© Espruino, powered by microcosm.
Report a problem