IP

Sunday, March 29, 2015

Computer Graphics Project of Screen Saver

#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main(void)
{
   int gdriver = DETECT, gmode;
   int midx, midy, i;

   initgraph(&gdriver, &gmode, "c:\\tc\\bgi");

while(!kbhit())
{

 setcolor(random(10));
 for(int k=0;k<random(19900);k=k+2)

 {
  rectangle(0+k,0+k,x-k,y-k);
 delay(5);
 }
}
getch();
cleardevice();
}

Computer Graphics, Presentations

0 comments:

Post a Comment

 

© 2011 Nisar Ahmed - Designed by Mukund | ToS | Privacy Policy | Sitemap

About Us | Contact Us | Write For Us

DemHa RasiN