Monday 27 August 2012

c program circle | graphics

 C | Draw Circle | Graphics

How to draw circle in c language using Graphics

void main()
{
int x1,y1,i,gm,gd=DETECT,j;
initgraph(&gd,&gm,"path");
for(i=0;i<=200;i++)
{
x1=rand()%640;
y1=rand()%480;
for(j=0;j<=25;j++)
{
setcolor(x1%15);
circle(x1,y1,j);
}
delay(5);
}
getch();
}
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: