🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #7095

Re: Fast circle drawing.

#7095
From: Timo Suhonen
Date: Fri, 25 Jan 1991 11:44
23 lines
1787 bytes
In article <1991Jan25.055135.4172@nntp-server.caltech.edu> josephc@nntp-server.caltech.edu (Joseph I. Chiu) writes:

   The discussion of ellipse drawing prompted me to write the article because
   I had a hard time coming up with a fast circle-drawing routine when I needed
   it for a programming class last year.  I hope someone can use this...

[stuff about sin & cos removed]

You can't do anything _fast_ with sin and cos. The are too slow...

Find Bresenhams circle algorithm. You can code it with integers (ex. use
pixels as coordinates and convert your problem coordinats to screen 
coordinates). I a PC (or Mac, Atari, Amiga, you name it) you can do the
whole thing into video memory to increase speed. The algorithm should be
found from any computer graphics book. 



--
Timo Suhonen        I am logged in, therefore I am        suhonen@nic.funet.fi
                                                          suhonen@kunto.jyu.fi
      Moderator for ftp site nic.funet.fi (128.214.6.100) Atari ST dir
   Opinions(?) are mine (if not stolen), NOT those of Univ. of Jyvaskyla.
Technical Details
Message-ID: <SUHONEN.91Jan25124417@kunto.jyu.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!suhonen
References: <1991Jan25.055135.4172@nntp-server.caltech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!suhonen
From: suhonen@kunto.jyu.fi (Timo Suhonen)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Re: Fast circle drawing.
Message-ID: <SUHONEN.91Jan25124417@kunto.jyu.fi>
Date: 25 Jan 91 11:44:17 GMT
References: <1991Jan25.055135.4172@nntp-server.caltech.edu>
Sender: news@tukki.jyu.fi (News articles)
Organization: University of Jyvaskyla, Faculty of Sport and Health Sciences
Lines: 23
In-Reply-To: josephc@nntp-server.caltech.edu's message of 25 Jan 91 05:51:35 GMT
Nntp-Posting-Host: kunto.jyu.fi