Winking Face

// Winking Face


#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,x,y,i,j,k=90,l=90;
initgraph(&gd,&gm,"C:/TC/BGI");
x=getmaxx()/2;
y=getmaxy()/2;
setcolor(14);
circle(250,250,120);//face
setfillstyle(1,14);
floodfill(330,300,14);//face

setcolor(0);
arc(250,290,200,340,45);//mouth up
arc(250,239,240,300,70);//mouth down
arc(212,303,30,240,5);//mouth left
arc(288,303,310,150,5);//mouth right
setfillstyle(1,0);
floodfill(252,310,0);//mouth

setcolor(0);
ellipse(220,225,360,0,10,15);//eye 1
ellipse(280,225,0,360,13,3);//eye 2
setfillstyle(1,0);
floodfill(222,222,0);//eye 1
floodfill(282,226,0);//eye 2
setcolor(0);
arc(220,207,50,172,25);//eyebrow left up
arc(225,220,65,152,33);//eyebrow left down
setfillstyle(1,0);
floodfill(221,185,0);//eyebrow left
setcolor(0);
arc(280,220,25,150,25);//eyebrow right up
arc(280,234,45,133,33);//eyebrow right down
setfillstyle(1,0);
floodfill(281,198,0);

getch();
closegraph();

}




// Image


Comments

Popular Posts