Re: A86: Drawing circles


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

Re: A86: Drawing circles



At 09:14 AM 11/3/97 -0500, you wrote:
>On Sun, 2 Nov 1997, MrManson wrote:
>
>> Robby Gutmann wrote:
>> > 
>> > Is there an easier way to draw circles than using sprites?  if not, 
>> 
>> yeah use sine and cosine, gonna have to manipulate the values in the OPs
>
>Don't use sine and cos functions to draw circles.  It's slow, and not well
>suited to a bitmapped display.  Do a net search for "Bresenham" and
>"circle" and you will find lots of info on drawing circles on bitmapped
>displays.
>
As I recall, the Bresenham circle algorithm uses some multiplication, so it
might be a pain to write. _Definitely_ worth it though. If you do it right,
it can do ellipses too.

--Joshua


Follow-Ups: References: