#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"");
setbkcolor(WHITE);
setcolor(RED);
ellipse(320,240,160,380,60,80);
/*Hairs*/
arc(322,215,400,140,80);
ellipse(377,186,270,438,10,28);
arc(379,184,169,265,30);
ellipse(267,186,438,270,10,28);
arc(269,184,265,361,30);
ellipse(326,184,180,360,26,20);
/*Eye brows*/
arc(296,256,89,130,40);
arc(292,260,80,120,40);
line(298,215,298,219);
arc(334,256,405,92,40);
arc(339,260,420,100,40);
line(330,215,330,221);
circle(312,214,3);
setfillstyle(SOLID_FILL,RED);
floodfill(312,214,RED);
/*Eyes*/
ellipse(286,235,0,360,10,4);
ellipse(340,235,0,360,10,4);
circle(286,235,2);
circle(340,235,2);
/*Nose*/
ellipse(300,220,270,0,10,40);
ellipse(325,220,180,270,10,40);
ellipse(305,260,100,285,8,7);
ellipse(320,260,255,70,8,7);
arc(314,260,228,689,10);
/*Lips*/
ellipse(315,290,0,360,20,7);
line(295,290,335,290);
/*Ears*/
ellipse(255,234,0,330,4,20);
ellipse(385,234,220,170,4,20);
settextstyle(1,HORIZ_DIR,3);
setcolor(BLUE);
outtextxy(255,350,"HUMAN FACE");
getch();
closegraph();
}
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"");
setbkcolor(WHITE);
setcolor(RED);
ellipse(320,240,160,380,60,80);
/*Hairs*/
arc(322,215,400,140,80);
ellipse(377,186,270,438,10,28);
arc(379,184,169,265,30);
ellipse(267,186,438,270,10,28);
arc(269,184,265,361,30);
ellipse(326,184,180,360,26,20);
/*Eye brows*/
arc(296,256,89,130,40);
arc(292,260,80,120,40);
line(298,215,298,219);
arc(334,256,405,92,40);
arc(339,260,420,100,40);
line(330,215,330,221);
circle(312,214,3);
setfillstyle(SOLID_FILL,RED);
floodfill(312,214,RED);
/*Eyes*/
ellipse(286,235,0,360,10,4);
ellipse(340,235,0,360,10,4);
circle(286,235,2);
circle(340,235,2);
/*Nose*/
ellipse(300,220,270,0,10,40);
ellipse(325,220,180,270,10,40);
ellipse(305,260,100,285,8,7);
ellipse(320,260,255,70,8,7);
arc(314,260,228,689,10);
/*Lips*/
ellipse(315,290,0,360,20,7);
line(295,290,335,290);
/*Ears*/
ellipse(255,234,0,330,4,20);
ellipse(385,234,220,170,4,20);
settextstyle(1,HORIZ_DIR,3);
setcolor(BLUE);
outtextxy(255,350,"HUMAN FACE");
getch();
closegraph();
}
No comments:
Post a Comment