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>fillellipse() draw and fill and ellipse</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fillellipse()           Draw and Fill and Ellipse

 #include   <graphics.h>

 void far fillellipse(x, y, xrad, yrad);
 int x, y;              Center point
 int xrad;              Horizontal radius
 int yrad;              Vertical radius

        This function draws and fills an ellipse with center point at
        (x, y), horizontal radius xrad, and vertical radius yrad. The
        current fill color is used.

    Returns:    Nothing.

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

    The following program draws a white ellipse.

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

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

               initgraph(&gdriver, &gmode, "");
               setfillstyle(SOLID_FILL, WHITE);
               fillellipse(320, 100, 100, 50);
               getch();
               closegraph();
           }


See Also: arc() circle() pieslice() ellipse() setaspectratio()

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