//____/____ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL _____\______//
//------------------- C++ PROGRAM TO DRAW SAD EMOJI -----------------------\\
/*________________________________________________________________________*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT, gm;
initgraph(&gd,&gm,"c://tc//bgi");
setcolor(10);
rectangle(5,5,620,475);
//-----FACE
setcolor(15);
setfillstyle(SOLID_FILL,14);
circle(340,190,169);
floodfill(351,151,15);
//-----LEFT EYE
setcolor(15);
setfillstyle(1,0);
circle(260,140,40);
floodfill(261,141,15);
setfillstyle(1,15);
circle(271,136,27);
floodfill(272,137,15);
//-----LEFT EYEDROP
setfillstyle(1,9);
ellipse(260,198,0,360,5,12);
floodfill(261,199,15);
//----- RIGHT EYE
setfillstyle(1,0);
circle(405,140,40);
floodfill(406,141,15);
setfillstyle(1,15);
circle(416,136,27);
floodfill(417,137,15);
//------ RIGHT EYEDROP
setfillstyle(1,9);
ellipse(413,198,0,360,5,12);
floodfill(414,199,15);
//----- LEFT EYEBROW
setcolor(0);
setfillstyle(1,0);
line(220,90,300,90);
line(220,90,220,87);
line(220,87,300,87);
line(300,87,300,90);
floodfill(221,89,0);
//---- RIGHT EYEBROW
setfillstyle(1,0);
line(370,90,450,90);
line(370,90,370,87);
line(370,87,450,87);
line(450,87,450,90);
floodfill(371,89,0);
setcolor(11);
outtextxy(435,430,"Created by :- ");
outtextxy(435,445,"COMPUTER SOFT SKILLS");
outtextxy(435,460,"(ROHIT)");
//----- SAD MOUTH
setcolor(4);
arc(336,300,0,180,52);
arc(337,300,0,180,52);
getch();
closegraph();
}
/*---------------- I HOPE YOU LIKE THIS PROGRAMMING ---------------------*/
/*____________ LIKE __________ SHARE _________ SUBSCRIBE _________________*/
0 Comments