wvanbergen / chunky_png

Read/write access to PNG images in pure Ruby.
https://chunkypng.com
MIT License
1.05k stars 101 forks source link

float coordinates for antialiased line drawing + antialiased circle drawing #92

Closed jeroentheuns closed 8 years ago

jeroentheuns commented 9 years ago

Willem, This PR contains the antialiased line with float coordinates as well as antialiased circle drawing functionality. However, I'm afraid I was a bit overenthusiastic. We had to change many other things that you definitely do not want anywhere near your repository. Sorry, don't ask, has to do with things that were forced onto us for rather dumb reasons. So'm this won't be a straight forward merge. :( Anyway, you can skip through the code or not, its mainly just two new functions in drawing.rb that could interest you. perhaps?

Kind regards, Jeroen

wvanbergen commented 8 years ago

I am definitely interested an a PR that adds support for floating point-based line drawing. If you are interested in contributing them, you can open them as a separate PR. Closing this one because the scope is way too big.