HI I AM TANZIM NOW I STUDYING IN PUNDRA UNIVERSITY,BOGRA,BANGLADESH ***WELCOME MY WEBSITE**.

Animated circle using graphics

 

 

 

 

 

 

CODE FOR TC:

#include<graphics.h>
#include<dos.h>
#include<conio.h>
void main()
{int p,q,r;
int x,y;
int gdriver = DETECT, gmode;
initgraph(&gdriver, &gmode, "C:\\tc\\bgi");
setbkcolor(15);
x=getmaxx()/2;
y=getmaxy()/2;
for(q=1;q<15;q++)
{
setcolor(q);
for(p=400;p>1;p--)
{
circle(x,y,p);
}
setcolor(q+2);
for(r=1;r<400;r++)
{
circle(x,y,r);
}
}
/*---------------- Left Hand-----------------*/
delay(1000);
setcolor(13);
line(0,150,5,150);
line(10,150,15,150);
line(20,150,25,150);
line(30,150,35,150);
line(48,145,40,154);
line(0,200,5,200);
line(10,200,15,200);
line(20,200,25,200);
line(30,200,35,200);
fillellipse(53,140,1,1);
fillellipse(73,140,1,1);
line(60,135,70,135);
line(78,140,150,140);
line(85,160,150,160);
line(85,178,135,178);
line(85,196,120,196);
line(85,214,105,214);
ellipse(150,150,270,90,10,10);
ellipse(135,169,270,90,9,9);
ellipse(120,187,270,90,9,9);
ellipse(105,205,270,90,9,9);
ellipse(78,150,270,90,3,9);
line(73,160,68,160);
line(58,145,66,154);
ellipse(80,169,270,90,3,7);
ellipse(80,187,270,90,3,7);
ellipse(80,205,270,90,3,7);
ellipse(75,169,90,270,3,7);
ellipse(75,187,90,270,3,7);
ellipse(75,205,90,270,3,7);
line(80,214,75,214);
line(70,214,65,214);
line(60,214,55,214);
line(40,200,50,214);
ellipse(0,175,270,90,5,27);
ellipse(5,175,270,90,5,27);
/*---------------- Right Hand-----------------*/
line(620,150,615,150);
line(610,150,605,150);
line(600,150,595,150);
line(590,150,585,150);
line(572,145,580,154);
line(620,200,615,200);
line(610,200,605,200);
line(600,200,595,200);
line(590,200,585,200);
fillellipse(567,140,1,1);
fillellipse(547,140,1,1);
line(60,135,70,135);
line(542,140,470,140);
line(535,160,470,160);
line(535,178,485,178);
line(535,196,500,196);
line(535,214,515,214);
ellipse(470,150,90,270,10,10);
ellipse(485,169,90,270,9,9);
ellipse(500,187,90,270,9,9);
ellipse(515,205,90,270,9,9);
ellipse(542,150,90,270,3,9);
line(547,160,552,160);
line(562,145,554,154);
ellipse(540,169,90,270,3,7);
ellipse(540,187,90,270,3,7);
ellipse(540,205,90,270,3,7);
ellipse(545,169,270,90,3,7);
ellipse(545,187,270,90,3,7);
ellipse(545,205,270,90,3,7);
line(540,214,545,214);
line(550,214,555,214);
line(560,214,565,214);
line(580,200,570,214);
ellipse(620,175,90,270,5,27);
ellipse(615,175,90,270,5,27);
line(550,135,560,135);

delay(1000);
rectangle(180,140,445,220);
rectangle(175,135,450,225);

/*---------------- TEXT-----------------*/
setcolor(4);
delay(1000);
line(210,165,225,165);
line(235,165,255,165);
line(245,165,245,207);
line(245,165,215,186);
ellipse(217,204,0,90,27,18);
ellipse(245,165,115,225,16,14);
fillellipse(239,152,2,2);
delay(1000);
line(255,165,295,165);
line(285,165,285,207);
ellipse(269,194,0,184,15,15);
circle(259,195,4);
delay(1000);
line(295,165,315,165);
line(305,165,295,179);
line(295,179,297,190);
line(297,190,304,195);
line(304,195,304,200);
line(304,200,297,210);
delay(1000);
line(315,165,343,165);
line(335,165,335,207);
line(335,165,305,186);
ellipse(307,204,0,90,27,18);
delay(1000);
line(343,165,356,165);
line(350,165,350,207);
delay(1000);
line(356,165,395,165);
line(363,165,363,207);
line(363,207,378,186);
line(378,186,383,186);
ellipse(383,197,90,270,4,10);

delay(1000);
setcolor(5);
settextstyle(10,0,3);
outtextxy(340,370,"Made by :");
outtextxy(360,430,"NASIR UDDIN");
getch();
 }

এ টিউটরিয়ালটি  আমার Friend নাসির এর থেকে সংগ্রহীত

 


1 comment: