home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 05-10.C < prev    next >
Text File  |  1995-01-20  |  401b  |  31 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. #define COLORS 256
  6.  
  7. void main()
  8. {
  9.    int base;
  10.    int color;
  11.    int mode;
  12.    int x;
  13.  
  14.    fg_initpm();
  15.    mode = fg_getmode();
  16.    fg_setmode(19);
  17.  
  18.    x = 0;
  19.  
  20.    for (color = 0; color < COLORS; color++)
  21.    {
  22.       fg_setcolor(color);
  23.       fg_rect(x,x,0,199);
  24.       x++;
  25.    }
  26.    fg_waitkey();
  27.  
  28.    fg_setmode(mode);
  29.    fg_reset();
  30. }
  31.