From: pochas <pochas@...>

Date: Fri, 20 Aug 1999 08:30:04 -0400

Date: Fri, 20 Aug 1999 08:30:04 -0400

> > Subject: Re: [FB] [x-fb] Trig functions for ellipses > Date: Fri, 20 Aug 1999 00:12:58 -0700 > From: Joe Lewis Wilkins <PepeToo@...> > To: futurebasic@... > > Mark wrote: > > <I'd like to write a program that draws sine waves that are based on > <ellipses instead of circles. I'm strong in math but my actual > <background is quite weak. Does anyone know if there's a topic in math > <that deals with this? Any code? All help will be appreciated. Thanks > <in advance. WINDOW 1 A! = 30 'minor axis B! = 50 'major axis CALL MOVETO(100+B!,100) FOR t=0 TO 360 y! = A! * SIN(t*3.14/180)+100 x! = B! * COS(t*3.14/180)+100 CALL LINETO (x!,y!) NEXT DO HANDLEEVENTS UNTIL 0 Just pop this in your toaster :-)