#include <stdlib.h>
#include<graphics.h>
#include <stdio.h>
void main()
{
int gd=DETECT,gm,i;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
for(i=1;i<=500;i++)
{
putpixel(rand()%500,rand()%500,rand()%500);
setfillstyle(rand()%15,rand()%15);
setcolor(rand()%10);
fillellipse(rand()%500,rand()%500,15,15);
delay(100);
}
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.