First initialize Graphics by adding the following code:
int gd = DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
Set Colour for the ball and background:
setbkcolor(16);
setfillstyle(SOLID_FILL,23);
floodfill(23,50,23);
Create a circle:
circle(100,100,100);
create your football's Design.This is a Simple design.You can change it if you want:
arc(100,230,60,120,185);
arc(105,220,50,195,145);
arc(350,245,130,170,290);
arc(320,225,130,171,280);
You can download the Complete code file by clicking Download.
Place the downloaded file in C:\TC\BGI
Download
int gd = DETECT,gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
Set Colour for the ball and background:
setbkcolor(16);
setfillstyle(SOLID_FILL,23);
floodfill(23,50,23);
Create a circle:
circle(100,100,100);
create your football's Design.This is a Simple design.You can change it if you want:
arc(100,230,60,120,185);
arc(105,220,50,195,145);
arc(350,245,130,170,290);
arc(320,225,130,171,280);
You can download the Complete code file by clicking Download.
Place the downloaded file in C:\TC\BGI
Download
No comments:
Post a Comment