الرسم ب c++ (رسم وردة )
الرسم ب c++ (رسم وردة )
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\TC\\BGI"); // Write the path of BGI folder
//============================= Middle Circle ================================
setfillstyle(SOLID_FILL,CYAN);
circle(300,230,100);
floodfill(300,230,WHITE);
//============================= Petals ======================================
setfillstyle(SOLID_FILL,MAGENTA);
arc(455,220,218,150,80);
floodfill(445,230,WHITE);
setfillstyle(SOLID_FILL,MAGENTA);
arc(300,85,313,230,80);
floodfill(300,85,WHITE);
setfillstyle(SOLID_FILL,MAGENTA);
arc(150,235,40,325,80);
floodfill(150,235,WHITE);
setfillstyle(SOLID_FILL,MAGENTA);
arc(295,380,125,50,80);
floodfill(295,380,WHITE);
//============================= Pedicel =====================================
setfillstyle(SOLID_FILL,GREEN);
arc(372,495,270,89,200);
arc(355,515,270,90,200);
floodfill(510,380,WHITE);
getch();
closegraph();
}
ليست هناك تعليقات: