Home   Easy-Code    Forum  Updater 
Twitter Facebook



Sai baba using c graphics

Critics Rating:

Users Rating:



          /* SAI BABA*/



#include <stdio.h>

#include <graphics.h>

#include <stdlib.h>

void main()

{

int gd=DETECT,gm,i,j,k;

initgraph(&gd,&gm,"g:\\exe\\tcnew\\bgi");

/* FOR CAP */

j=100;k=20;

for(i=200;i>=100;i--)

{

if (i==100)

{

j=10;

k=1;

}

cleardevice();

ellipse(3*i,75,355,i+90,40,25);

line(260,80,265,90);

line(340,80,335,90);

arc(3*i,i+85,70,i+10,i);

line(261,78,273,73);

line(262,84,279,78);

line(340,78,325,73);

line(339,84,319,78);

line(338,88,313,83);



/* for top circle */

arc(3*i,i,353,205,70);

arc(3*i,i,348,205,80);

arc(3*i,i,348,205,75);



/* for face side */

arc(328,98,0,50,15);

line(342,i,340,i);

arc(338,i,0,60,10);

line(348,i+4,346,i+12);

arc(350,i+2,360,90,5);

line(356,i+4,352,i+20);

arc(362,i+15,370,i+5,10);

line(372,i+14,4*i,i+45);



/* for face */

line(265,90,265,i+5);

line(266,90,266,i+5);

line(267,90,267,i+5);

line(268,90,268,i+5);

line(269,90,269,i+5);

line(266,i+7,267,i+15);

line(267,i+7,268,i+15);

line(268,i+7,269,i+15);

line(268,i+15,269,i+23);

line(269,i+15,270,i+23);

line(270,i+23,271,i+31);

line(271,i+15,272,i+23);

line(272,i+23,273,i+31);

line(274,i+23,275,i+31);

line(335,90,335,i+5);

line(334,90,334,i+5);

line(333,90,333,i+5);

line(332,90,332,i+5);

line(331,90,331,i+5);

line(334,i+7,333,i+15);

line(333,i+7,332,i+15);

line(332,i+7,331,i+15);

line(331,i+7,330,i+15);

line(330,i+7,329,i+15);

line(332,i+15,331,i+23);

line(330,i+15,329,i+23);

line(328,i+15,327,i+23);

line(330,i+23,329,i+31);

line(328,i+23,327,i+31);

line(326,i+23,325,i+31);



/* for face */



ellipse(3*i*k,80,190,350*k,32,75);

ellipse(3*i*k,81,190,350*k,32,75);

ellipse(3*i*k,82,190,350*k,32,75);

ellipse(3*i*k,83,190,350*k,32,75);

ellipse(3*i*k,84,190,350*k,32,75);

ellipse(3*i*k,85,190,350*k,32,75);

ellipse(3*i*k,86,190,350*k,32,75);

ellipse(3*i*k,87,190,350*k,32,75);

ellipse(3*i*k,88,190,350*k,32,75);

ellipse(3*i*k,89,190,350*k,32,75);

ellipse(3*i*k,90,190,350*k,32,75);

ellipse(3*i*k,91,190,350*k,32,75);

ellipse(3*i*k,75,210,330*k,35,95);

ellipse(3*i*k,74,210,330*k,35,95);

ellipse(3*i*k,73,210,330*k,35,95);

ellipse(3*i*k,72,210,330*k,35,95);



/* for m */



ellipse(3*i,179,57,123*k,38,50);

ellipse(3*i,180,57,123*k,38,50);

ellipse(3*i,181,57,123*k,38,50);

ellipse(3*i,182,57,123*k,38,50);

ellipse(3*i,183,57,123*k,38,50);



/* for lips */



ellipse(365,141*k,145,190,80,6);

ellipse(235,141*k,350,30,80,6);

ellipse(300,143*k,180,360,12,4);

ellipse(300,140*k,195,355,12,2);



/* for nose */



line(298,104,298*k,110);

line(302,104,302*k,110);

ellipse(298,120*k,90,183,5,9);

ellipse(302,120*k,357,90,5,9);

arc(300,123,180*k,360,2);

arc(294,125,0,80*k,4);

arc(305,125,90,170*k,4);



/* for eye brows */



arc(316,115,64,139,18);

arc(285,115,61,120,18);



/* for eyes */



arc(285,118,64,120,15);

arc(317,118,68,122,15);

putpixel(285,105,WHITE);

putpixel(317,105,WHITE);

arc(285,93,250,295,15);

arc(317,92,260,296,15);



/* for Lsho */



line(27*j,120,23*j,113);

ellipse(238,227,i,15*j,55,95);

line(190,180,185,215);

arc(205,231,14*j,235,25);

line(233,19*j,235,245);

ellipse(305,238,19*j,220,7*j,20);

arc(265,130,8*j,15*j,1*j);

line(255,13*j,263,148);

arc(205,250,75,123,3*j);

arc(205,260,85,135,3*j);

arc(247,175,2*i,240,3*j);

arc(248,205,22*j,240,3*j);

arc(248,195,21*j,240,3*j);

arc(213,225,3*i,320,3*j);

arc(225,230,32*j,340,3*j);

arc(215,220,32*j,350,3*j);

ellipse(224,185,0,50,10,3*j);



/* for patch */



arc(178,168,330,35*j,30);

arc(180,197,20,3*j,30);

arc(237,197,140,16*j,30);

arc(226,150,23*j,245,3*j);



/* for neck */



line(269,150,29*j,210);

line(265,170,28*j,213);

line(330,160,28*j,220);

arc(285,223,17*j,260,7);

arc(283,237,0,9*j,7);

line(290,240,32*j,315);



/* for Rsho */



arc(328,135,0,70,1*j);

line(337,137,328,16*j);

arc(335,139,0,70,1*j);

line(344,141,335,17*j);

arc(341,143,0,70,1*j);

line(350,145,341,18*j);

arc(347,147,0,70,1*j);

line(338,136,37*j,145);

ellipse(304,188,37*j,5*j,105,55);

line(408,18*j,415,3*i);

line(365,208,372,3*i);

arc(315,205,0,4*j,5*j);

ellipse(355,165,3*i,360,2*j,30);

ellipse(357,205,3*i,340,2*j,30);

line(378,216,383,214);

ellipse(358,215,3*i,33*j,20,3*j);

line(375,231,382,227);

ellipse(358,225,3*i,320,2*j,3*j);

line(373,244,38*j,240);



/* for leg */

arc(190,275,50,210,25);

line(205,256,225,273);

line(225,273,33*j,340);

arc(21*j,261,210,25*j,50);

ellipse(334,28*j,2*i,240,150,75);

arc(24*j,448,55,8*j,105);

j--;

}

while(!kbhit())

{

settextstyle(1,0,5);

delay(2000);

outtextxy(random(600),random(100)+350,"*");

}

}

Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.