Path: 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: 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 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.