calculate part of solid circle in 2D array
Peter Otten
__peter__ at web.de
Mon Nov 25 04:01:05 EST 2013
Robert Voigtländer wrote:
> OK. Found a good one here:
> http://www.daniweb.com/software-development/python/threads/321181/python-
bresenham-circle-arc-algorithm
>
> Now only filling is needed.
> Any help is welcome ...
I think you shouldn't implement the algorithm directly. Rather look for a
library that does it for you.
If you are using PIL like in the link you give above consider using the
draw.arc() function directly:
http://effbot.org/imagingbook/imagedraw.htm
There is also cairographics where you draw a "path" on a "surface".
http://cairographics.org/documentation/pycairo/2/reference/context.html
http://cairographics.org/documentation/pycairo/2/reference/surfaces.html
Sorry, I can't help with the details.
More information about the Python-list
mailing list