home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / wgt35 / examples / wgt03.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-28  |  383 b   |  20 lines

  1. #include <conio.h>
  2. #include <wgt.h>
  3.  
  4. /*   WORDUP Graphics Toolkit   Version 3.5
  5.      Demonstration program 3
  6.  
  7. Clears the screen with random colours until you hit a key.
  8. */
  9.  
  10. int x,y,col;
  11.  
  12. void main(void)
  13. {
  14. vga256();        // initializes system
  15. do {
  16.    wcls(rand() % 255);
  17.    } while (kbhit()==0);
  18. getch();        // get the key
  19. textmode(C80);        // used to return to text mode
  20. }