Write a C Program to demonstrating graphics - screen saver

/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/

#include
#include
#include
#include

void main(){
int gdriver=DETECT,gmode;
int left=200,top=200,right=700,bottom=700,color=15,pat=8;
initgraph(&gdriver,&gmode,"");
cleardevice();
while(!kbhit()){
setfillstyle(random(pat),random(color));
bar(random(left),random(top),random(right),random(bottom));
delay(250);
}
closegraph();
}



Powered by Wufoo