cparnot / ASCIImage

Create UIImage / NSImage instances with NSString and ASCII art
MIT License
1.52k stars 76 forks source link

Create pixel-aligned Bezier curves for ellipses as well #10

Closed cparnot closed 9 years ago

cparnot commented 9 years ago

At the moment, Bezier paths created for ellipses are sized so that filling them gets all the way to the pixel borders. As a result, when using stroke for drawing, they are not pixel-aligned like all the other shapes. The rect for ellipses simply need to be inset 0.5 points. When rendered as pure fill, we need to issue a fill and a stroke, just like for polygons.