/*********** WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL **************/
/************** C++ PROGRAMMING TO DRAW DORAEMON *********************/
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<graphics.h>
void main()
{
int i;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
for(i=0;i<50;i++)
{
//________LEGS______________//
setcolor(15);
ellipse(200,450,150,390,50,16);
line(157,441,243,441);
ellipse(252,448,246,389,50,18);
line(243,441,297,441);
setcolor(i);
ellipse(249,441,90,180,10,15);
//_______TAIL
setcolor(12);
ellipse(155,410,80,280,8,8);
setcolor(i);
line(157,441,157,370);
line(297,441,297,350);
//_______left hand
setcolor(15);
circle(147,357,16);
setcolor(i);
ellipse(137,342,300,330,58,19);
ellipse(174,348,110,170,29,49);
//______right hand
setcolor(15);
circle(327,275,16);
setcolor(i);
ellipse(265,260,299,340,74,90);
ellipse(323,285,110,170,25,19);
//___NECK
setcolor(12);
line(163,302,285,302);
line(163,298,285,298);
ellipse(163,301,90,270,3,3);
ellipse(285,300,280,80,4,3);
//_____tummy bag
setcolor(15);
ellipse(243,334,143,40,56,48);
ellipse(244,346,163,15,30,24);
line(214,340,273,340);
//________bell
setcolor(14);
circle(244,310,8);
line(238,306,251,306);
line(236,309,251,309);
//______head
setcolor(i);
ellipse(220,237,0,180,87,60);
ellipse(180,237,180,250,47,65);
ellipse(268,237,290,360,40,65);
//_______face
setcolor(15);
ellipse(263,277,15,90,45,60);
ellipse(245,210,0,360,19,23);
ellipse(207,210,0,360,19,23);
ellipse(202,237,190,243,47,69);
ellipse(187,254,90,170,32,35);
circle(216,217,5);
circle(237,218,5);
//_____nose
setcolor(12);
circle(227,236,8);
ellipse(230,262,180,360,45,30);
ellipse(232,263,10,190,47,6);
setcolor(15);
ellipse(275,253,290,110,10,8);
line(227,244,227,257);
line(245,238,269,234);
line(245,244,269,242);
line(245,250,269,252);
line(185,236,210,238);
line(185,244,210,244);
line(185,252,210,250);
//__________text
settextstyle(3,0,2);
setcolor(14);
outtextxy(320,420,"-Draw By ROHIT TECH STUDY");
settextstyle(7,0,5);
setcolor(i);
outtextxy(100,50,"DORAEMON");
delay(350);
}
getch();
closegraph();
}
0 Comments