Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>ellipse() draw an elliptical arc</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ellipse()               Draw an Elliptical Arc

 #include   <graphics.h>

 void far   ellipse(x,y,start,end,xrad,yrad);
 int        x, y;
 int        start, end;
 int        xrad, yrad;

    ellipse() draws an elliptical arc.  ('x','y') are the coordinates of
    its center.  'xrad' is the horizontal axis and 'yrad' is the vertical
    axis.  The ellipse is drawn from 'start' to 'end'.  (To draw a
    complete ellipse, 'start' = 0 and 'end' = 360.)

    Returns:    Nothing.

   -------------------------------- Example ---------------------------------

    The following statements draw two intersecting ellipses.

           #include <graphics.h>
           #include <conio.h>

           main()
           {
               int gdriver = DETECT;
               int gmode;

               initgraph(&gdriver,&gmode,"");
               ellipse(320,100,0,360,100,50);
               ellipse(320,100,0,360,50,100);
               getch();
               closegraph();
           }


See Also: arc() circle() getarccoords() getaspectratio() pieslice()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson