home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / w / wgt3_ex.zip / WGT03.C < prev    next >
C/C++ Source or Header  |  1992-09-08  |  383b  |  20 lines

  1. #include <conio.h>
  2. #include <wgt.h>
  3.  
  4. /*   WORDUP Graphics Toolkit   Version 3.0
  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. }