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 >
Wrap
C/C++ Source or Header
|
1992-09-08
|
383b
|
20 lines
#include <conio.h>
#include <wgt.h>
/* WORDUP Graphics Toolkit Version 3.0
Demonstration program 3
Clears the screen with random colours until you hit a key.
*/
int x,y,col;
void main(void)
{
vga256(); // initializes system
do {
wcls(rand() % 255);
} while (kbhit()==0);
getch(); // get the key
textmode(C80); // used to return to text mode
}