Smiling Face With Open Mouth
// Smiling Face With Open Mouth
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,x,y;
initgraph(&gd,&gm,"C:/TC/BGI");
x=getmaxx()/2;
y=getmaxy()/2;
setcolor(14);
circle(250,250,140);//face
setfillstyle(1,14);
floodfill(350,320,14);
setcolor(0);
ellipse(200,200,0,360,20,30);//eye1
ellipse(300,200,0,360,20,30);//eye2
setfillstyle(1,0);
floodfill(200,200,0);//eye1
floodfill(300,200,0);//eye2
setcolor(15);
circle(200,195,7);//eye1.2
circle(300,195,7);//eye2.2
setfillstyle(1,15);
floodfill(202,197,15);//eye1.2
floodfill(302,197,15);//eye2.2
setcolor(0);
arc(250,0,246,294,275);//lip1
arc(250,0,248,292,280);//lip1.2
arc(250,250,181,359,110);//lip2
arc(250,250,185,355,105);//lip2.2
setfillstyle(1,0);
floodfill(252,279,0);//lipup
floodfill(252,359,0);//lipdown
setfillstyle(1,12);
floodfill(252,302,0);//lipdown
setcolor(6);
arc(250,-7,249,292,287);//teethup
arc(251,-5,251,288,310);//teethdown
arc(250,250,185,202,105);//teethleft
arc(250,250,338,355,105);//teethright
setfillstyle(1,15);
floodfill(152,272,6);//teeth
setcolor(4);
arc(250,365,26,154,40);//TONGUE1
arc(250,255,248,293,100);//TONGUE2
setfillstyle(1,4);
floodfill(252,331,4);//tongue
getch();
closegraph();
}
OUTPUT


Comments
Post a Comment