[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] New way for drawing an arc



Cool! When I needed to draw an arc more than a couple of pixels wide, I approximated it with a polygon. I think it gave pretty good results. I'm not sure how it would compare performance-wise, but it should involve a lot fewer trig function calls. Have you tried this method?

-Christopher

On Thu, Jan 5, 2012 at 6:36 PM, Silver <rockachu2@xxxxxxxxx> wrote:
I recently figured out how to draw an arc in pygame without moire holes
and allowing stuff like antialiasing. Just if any of your are interested.

The script is a little slow.
Also: atan issues where the arc starts out from the left instead of top.
I can't seem to fix it.


--Rockachu2