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>circle() draw a circle</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 circle()                Draw a Circle

 #include   <graphics.h>

 voidfar    circle(x,y,rad);
 int        x;
 int        y;
 int        rad;

    circle() draws a circle.  Its center is at coordinates ('x','y') and
    its radius is 'rad'.

    Returns:    Nothing.

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

    The following statements draw a circle on the screen.

           #include <graphics.h>

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

               initgraph(&gdriver,&gmode,"");
               circle(320,100,100);
               getch();
               closegraph();
           }


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

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