Face With Monocle
//Face With Monocle
#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(150,150,100);//face
setfillstyle(1,14);
floodfill(150,150,14);
setcolor(0);
ellipse(110,120,360,0,10,15);//eye1
ellipse(190,120,360,0,10,15);//eye2
arc(150,280,70,110,105);//mouthup
arc(150,280,70,110,100);//mouthdown
line(185,185,187,182);//mouthleft
line(115,182,117,185);//mouthright
setfillstyle(1,0);
floodfill(112,122,0);//eye1
floodfill(192,122,0);//eye2
setfillstyle(1,12);
floodfill(117,183,0);//mouth
setcolor(15);
circle(110,112,3);//eye1.1
circle(190,112,3);//eye1.2
setfillstyle(1,15);
floodfill(110,112,15);//eye1.1
floodfill(190,112,15);//eye1.2
setcolor(0);
arc(97,110,50,140,15);//eyebrow1
arc(109,83,250,330,15);//eyebrow1.1
line(160,85,190,75);//eyebrow2
arc(190,82,50,130,7);//eyebrow2.1
line(190,75,210,80);//eyebrow2.2
setcolor(0);
circle(190,120,20);//glass in
circle(190,120,25);//glass out
rectangle(215,115,225,125);//handle out
rectangle(218,118,222,122);//handle int
rectangle(218,125,222,215);//thread
setfillstyle(1,0);
floodfill(190,98,0);//glass out
floodfill(216,116,0);//hamdle out
floodfill(219,126,0);//thread
getch();
closegraph();
}
OUTPUT


Comments
Post a Comment