Smiling Face With Halo
//Smiling Face With Halo
#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,120);//face
setfillstyle(1,14);
floodfill(330,300,14);//face
setcolor(0);
arc(250,260,200,340,75);//mouth up
arc(250,209,229,311,100);//mouth down
arc(182,285,0,180,3);//mouth left
arc(318,285,0,180,3);//mouth right
setfillstyle(1,0);
floodfill(252,310,0);//mouth
setcolor(0);
ellipse(200,250,0,180,22,30);//1 eye up
ellipse(200,257,20,160,17,20);//1 eye down
arc(181,250,180,0,3);//1 eye left
arc(219,250,180,0,3);//1 eye right
ellipse(300,250,0,180,22,30);//2 eye up
ellipse(300,257,20,160,17,20);//2 eye down
arc(281,250,180,0,3);//2 eye left
arc(319,250,180,0,3);//2 eye right
setfillstyle(1,0);
floodfill(201,230,0);//1 eye
floodfill(301,230,0);//2 eye
setcolor(1);
ellipse(250,150,0,360,110,20);//ring in
ellipse(250,157,0,360,130,30);//ring out
setfillstyle(1,11);
floodfill(145,160,1);//ring
getch();
closegraph();
}
OUTPUT


Comments
Post a Comment