Grinning Face With Smiling Eyes
//Grinning Face With Smiling Eyes
#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);
arc(200,220,0,180,40);//eye1
arc(300,220,0,180,40);//eye2
arc(200,250,38,143,50);//eye1.2
arc(300,250,38,143,50);//eye2.2
setfillstyle(1,0);
floodfill(200,189,0);//eye1
floodfill(300,189,0);//eye2
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,0);
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);//teethUP
setcolor(4);
arc(250,22,251,289,287);//teethdu
arc(250,255,202,338,102);//teethdd
setfillstyle(1,15);
floodfill(172,302,4);//TEETHDOWN
getch();
closegraph();
}
OUTPUT


Comments
Post a Comment