Fixed several issues with drawing ellipses by bjorn · Pull Request #3776 · mapeditor/tiled (original) (raw)
I've replaced the ellipse drawing algorithms with implementations by Zingl Alois, originally written in 2012 and published under MIT license.
This addresses several issues with the previously used implementations of pointsOnEllipse and ellipseRegion:
Ellipses no longer degrade when very large (near 2000 tiles in size).
No more gaps in the circle for some sizes.
Shape Fill tool can now actually draw circles of equal width and height and can draw both even and odd sized ellipses.
The Shape Fill tool was adjusted such that drawing ellipses work in bounding-box mode by default. The Alt modifier now toggles to center + radius mode, which also applies when drawing rectangles.
Closes mapeditor#3775