Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: mperdue@iquest.net (Mario Perdue) Newsgroups: scea.yaroze.beginners Subject: Re: Circle? Date: Sun, 20 Jul 1997 02:03:41 GMT Organization: SCEA Net Yaroze News Lines: 34 Message-ID: <33d17140.10866964@205.149.189.29> References: <33D080DE.161D@earthlink.net> NNTP-Posting-Host: firewall.hrtc.net X-Newsreader: Forte Free Agent 1.1/32.230 Drawing a circle with GsGLines would work fine. You just need to calculate a series of points on the circumference of the circle and connect them with line segments. As you would expect, the number of lines will determine how round the circle looks. Mario On Sat, 19 Jul 1997 01:54:54 -0700, "Linda J. Hodge" wrote: >Mario or anyone that can help, >I made my first program and am getting some errors. I am trying to >display a bunch of circles on screen using a drawing function.I dont >know which one thats the thing.I mean I got the math for it: > >for(index=0; index<1000; index++) > { > > xo = 20 + rand()%300; > yo = 20 + rand()%1800; > rad = 1 + rand()%20; > color = rand()%256; > > for(ang=0;ang<360; ang++) > { > x = xo + cos(ang*3.14/180) * rad; > y = yo + cos(ang*3.14/180) * rad; > > //Now from here I need a function to put x,y and color on > //to screen.I was thing of a GsLINE func to do the job //but that is >for straight line endpoints only.Any //suggestions? > >Thanks.