Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_arc() draw an arc</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _arc()                  Draw an arc

 #include   <graph.h>

 short far _arc( x1, y1, x2, y2, x3, y3, x4, y4 );
  short x1, y1;     Upper-left corner of bounding rectangle
  short x2, y2;     Lower-right corner of bounding rectangle
  short x3, y3;     Start vector
  short x4, y4;     End vector

    _arc() draws an elliptical arc. The logical points (x1, y1) and
    (x2, y2) define the upper-left and lower-right corners of a rectangle
    enclosing the ellipse that defines the arc. The center of the arc is
    the center of the rectangle. The arc starts at the point where it
    intersects the vector defined by (x3, y3) and ends where it
    intersects the vector defined by (x4, y4).

       Returns:     If successful, _arc() returns a nonzero value,
                    otherwise it returns 0.

         Notes:     The arc is drawn using the current color moving in a
                    counterclockwise direction. Since an arc does not
                    define a closed area, it is not filled.

   Portability:     MS-DOS only, true MDPA, CGA, EGA, MCGA, or VGA video
                    compatibles

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

    This program draws an arc.

           #include <conio.h>
           #include <graph.h>

           main()
           {
              _setvideomode( _MRES4COLOR );
              _arc( 90, 60, 250, 160, 250, 22, 10, 160 );

              while ( !kbhit() );
              _setvideomode( _DEFAULTMODE );
           }


See Also: _pie() _ellipse() _rectangle() _setfillmask() _setcolor()

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