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>bar3d() draw and fills a 3-dimensional bar</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 bar3d()                 Draw and Fills a 3-Dimensional Bar

 #include   <graphics.h>

 void       far bar3d(l,t,r,b,depth,tflag);
 int        l;
 int        t;
 int        r;
 int        b;
 int        depth;
 int        tflag;

    bar3d() draws and fills in a three-dimensional rectangular bar. The
    bar is drawn using the upper left coordinates ('l','t') and the lower
    right coordinates ('r','b').  The current fill pattern and fill color
    is used to fill in the  bar.  The bar is outlined using the current
    line style and color.  'depth' determines the bar's depth. 'tflag'
    not equal to zero signals that a three-dimensional top is to be put
    on the bar.

    Returns:    Nothing.

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

    The following statements draw 3 three-dimensional bars and fill them
    with different fill patterns and fill colors.

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

           int gdriver = DETECT;
           int gmode;

           main()
           {
               initgraph(&gdriver,&gmode,"");
               setfillstyle(SOLID_FILL,RED);
               bar3d(10,10,50,100,(50-10)/4,1);
               setfillstyle(HATCH_FILL,BLUE);
               bar3d(200,10,250,100,(250-200)/4,1);
               setfillstyle(LINE_FILL,YELLOW);
               bar3d(400,10,450,100,(450-400)/4,1);
               getch();
               closegraph();
           }


See Also: bar()

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