Face With Open Mouth


//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,240,170);//face
    setfillstyle(1,14);
    floodfill(250,240,14);
    setcolor(15);
    ellipse(190,175,0,360,35,43);//eye
    ellipse(310,175,0,360,35,43);//eye
    setfillstyle(1,15);
    floodfill(190,175,15);
    floodfill(310,175,15);
    setcolor(0);
    circle(190,195,20);//eye1.2
    circle(310,195,20);//eye2.2
    setfillstyle(1,0);
    floodfill(192,197,0);
    floodfill(312,197,0);
    setcolor(0);
    circle(250,330,70);//mouth
    setfillstyle(1,0);
    floodfill(250,330,0);
    setcolor(4);
    arc(250,330,190,350,70);//tongue
    line(183,345,317,345);//tongue
    setfillstyle(1,12);
    floodfill(185,347,4);
    getch();
    closegraph();
}

OUTPUT

 

Comments

Popular Posts