#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
/* request autodetection */
int gdriver = DETECT, gmode, errorcode;
int i;
int j;
int k;
int y;
/* initialize graphics mode */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk)
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1);
/*C0d3d by -cod3mast3r- */
}
line(0, 0, getmaxx(), getmaxy());
arc(100,200,100,200,100);
setcolor(5);
for(i=0;i<100;i++)
{
for(k=0;k<1000;k++)
for(j=0;j<30000;j++)
{}
setcolor(i);
arc(getmaxx()/2+i,getmaxy()/2+i,0,360,100-i);
}
outtextxy(10,10,"Waaaoooowww what a race !");
for(i=0;i<200;i++)
{
for(k=0;k<1000;k++)
for(j=0;j<30000;j++)
{}
setcolor(i);
arc(getmaxx()/2+i,getmaxy()/2+i,0,360,100-i);
}
/* clean up */
getch();
closegraph();
return 0;
}