home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / animutil / fastgfx / fg110c / 06-13.c < prev    next >
Text File  |  1992-01-30  |  461b  |  27 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    char matrix[4];
  8.    int old_mode;
  9.  
  10.    old_mode = fg_getmode();
  11.    fg_setmode(13);
  12.  
  13.    matrix[0] = matrix[2] = 0x55;
  14.    matrix[1] = matrix[3] = 0xAA;
  15.    fg_setcolor(9);
  16.    fg_drect(0,49,0,49,matrix);
  17.  
  18.    matrix[0] = matrix[2] = 0xAA;
  19.    matrix[1] = matrix[3] = 0x55;
  20.    fg_setcolor(15);
  21.    fg_drect(0,49,0,49,matrix);
  22.    fg_waitkey();
  23.  
  24.    fg_setmode(old_mode);
  25.    fg_reset();
  26. }
  27.