Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!kth!draken!tut!santra!kampi!jmunkki From: jmunkki@kampi.hut.fi (Juri Munkki) Newsgroups: comp.graphics,comp.sys.mac.programmer Subject: Re: A deficiency in the Mac ellipse algorithm? Summary: A way to draw connected ellipses. Message-ID: <20340@santra.UUCP> Date: 10 Mar 89 13:43:38 GMT References: <395@brunix.UUCP> <4070@ingr.com> <339@gtss.gatech.edu> <7929@boring.cwi.nl> <1053@geocub.greco-prog.fr> Sender: news@santra.UUCP Reply-To: jmunkki@kampi.UUCP (Juri Munkki) Organization: Helsinki University of Technology, Finland Lines: 37 Followup-To: Xref: utzoo comp.graphics:4840 comp.sys.mac.programmer:4952 I just got tired of all this talk about a deficiency in the Quickdraw ellipses. There's a very simple way to draw connected ellipses using Quickdraw... Here's a program that draws to ellipses. The first one has the expected gaps, but the second is connected. Maybe no one else thought of this solution? It takes longer to draw this way, but at least you get what you want. void main() { GrafPort MyPort; Rect TheOval; RgnHandle MyRgn; InitGraf(&thePort); InitCursor(); OpenPort(&MyPort); EraseRect(&MyPort.portRect); SetRect(&TheOval,10,10,502,30); FrameOval(&TheOval); MyRgn=NewRgn(); OpenRgn(); OffsetRect(&TheOval,0,30); FrameOval(&TheOval); CloseRgn(MyRgn); FrameRgn(MyRgn); DisposeRgn(MyRgn); while(!Button()); while(Button()); } _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ | Juri Munkki jmunkki@hut.fi jmunkki@fingate.bitnet I Want Ne | | Helsinki University of Technology Computing Centre My Own XT | ^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^