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

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int mode;
  8.  
  9.    fg_initpm();
  10.    mode = fg_getmode();
  11.    fg_setmode(4);
  12.  
  13.    fg_defcolor(0,1);
  14.    fg_defcolor(255,1);
  15.  
  16.    fg_setcolor(0);
  17.    fg_text("0",1);
  18.    fg_setcolor(1);
  19.    fg_text(" 1",2);
  20.    fg_setcolor(255);
  21.    fg_text(" 255",4);
  22.    fg_waitkey();
  23.  
  24.    fg_setmode(mode);
  25.    fg_reset();
  26. }
  27.