Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60405
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: calculate part of solid circle in 2D array |
| Date | 2013-11-25 10:01 +0100 |
| Organization | None |
| References | <30510ff6-f414-49aa-90d6-73a4610d8f77@googlegroups.com> <c326ec06-3ca9-48c0-9134-d79cd1bb3cf8@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3162.1385370037.18130.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
calculate part of solid circle in 2D array Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-11-24 23:26 -0800
Re: calculate part of solid circle in 2D array Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-11-25 00:30 -0800
Re: calculate part of solid circle in 2D array Peter Otten <__peter__@web.de> - 2013-11-25 10:01 +0100
Re: calculate part of solid circle in 2D array Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-11-25 06:14 -0800
Re: calculate part of solid circle in 2D array Roy Smith <roy@panix.com> - 2013-11-25 09:46 -0500
Re: calculate part of solid circle in 2D array Gene Heskett <gheskett@wdtv.com> - 2013-11-25 10:53 -0500
Re: calculate part of solid circle in 2D array Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-11-26 11:44 +1300
Re: calculate part of solid circle in 2D array Robert Voigtländer <r.voigtlaender@gmail.com> - 2013-11-25 23:19 -0800
csiph-web