//___________ WELCOME ALL OF YOU ON ROHIT TECH STUDY CHANNEL ______________//
//_________________ C++ PROGRAM TO DRAW GANPATI BAPPA _____________________//
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd,gm,i;
gm=gd=DETECT;
initgraph(&gm,&gd,"c://tc//bgi");
for(i=0;i<50;i++)
{
setcolor(i);
//_____________TUMMY____________//
ellipse(235,250,130,420,100,90);
//TUMMY POINT
ellipse(240,320,0,360,4,4);
//____________LEGS_______________//
ellipse(170,330,105,355,100,50);
ellipse(343,330,195,100,80,50);
//____________HEAD_______________//
ellipse(245,147,50,140,40,51);
ellipse(186,150,50,140,40,51);
//_____________EARS_______________//
arc(240,138,290,410,50);
arc(195,135,150,260,50);
//_____________TRUNK_______________//
setcolor(i+1);
ellipse(185,180,550,290,0,10);
ellipse(225,200,170,280,40,30);
ellipse(250,180,550,290,0,10);
ellipse(285,173,200,280,40,30);
ellipse(260,229,0,360,40,1);
ellipse(270,277,9,100,80,50);
ellipse(270,250,6,90,80,50);
//______________EYES____________________//
ellipse(200,150,0,70,10,10);
ellipse(240,150,98,180,10,10);
delay(500);
//______________TEXT____________________//
settextstyle(7,0,2);
outtextxy(5,5,"*_*_+_+-_+_ GANPATI BAPPA MORAYA _+-_+_-_+_-");
settextstyle(3,HORIZ_DIR,4);
outtextxy(5,390,"OM GAN GAPATAYE NAMO NAMAH !");
setcolor(10);
settextstyle(7,0,2);
outtextxy(400,450,"-ROHIT TECH STUDY");
}
getch();
closegraph();
}
2 Comments
Plz send algorithm this program
ReplyDeletePlz send algorithm
ReplyDelete