Smiling Face With Open Mouth And Closed Eyes


//Smiling Face With Open Mouth And Closed 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,150);//face
    setfillstyle(1,14);
    floodfill(350,320,14);
    setcolor(0);
    line(170,160,240,190);//eye1u
    line(170,220,240,190);//eye1d
    line(170,170,220,190);//eye12u
    line(170,210,220,190);//eye12d
    line(260,190,330,160);//eye2u
    line(260,190,330,220);//eye2d
    line(280,190,330,170);//eye22u
    line(280,190,330,210);//eye22d
    line(170,160,170,170);//eye3LU
    line(170,210,170,220);//eye3LD
    line(330,160,330,170);//eye3RU
    line(330,210,330,220);//eye3RD
    setfillstyle(1,0);
    floodfill(172,162,0);//EYE1
    floodfill(282,192,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,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

Popular Posts