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

 #include   <graphics.h>

 void       far arc(x,y,start,end,rad);
 int        x;
 int        y;
 int        start, end;
 int        rad;

    arc() draws the outline of an arc in the current drawing color.  The
    circular arc is centered at 'x','y' with a radius of 'rad'.  The arc
    travels from 'start' to 'end.

    Returns:    Nothing.

       Note:    'start' and 'end' are in degrees; 0 degrees is a 3
                o'clock.

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

    The following statements draw arc, a half circle, in the middle of
    the screen.

           #include <graphics.h>

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

               initgraph(&gdriver,&gmode,"");
               arc(320,150,0,179,50);
               getch();
               closegraph();
           }


See Also: circle() ellipse() getarccoords() pieslice()

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