Kite Making using Computer Graphics

in #programming6 years ago

out12.jpg

//Development of Kite
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int pts1[]={300,100,400,200,300,350,200,200};
int pts2[]={300,320,320,360,280,360,300,320};
initgraph(&gd,&gm,"C:\TurboC3\BGI");
setcolor(YELLOW);
setfillstyle(7,BLUE);
fillpoly(4,pts1);
arc(300,290,42,138,134);
line(300,100,300,350);
setfillstyle(7,GREEN);
fillpoly(4,pts2);
getch();
closegraph();
}

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.030
BTC 68227.33
ETH 2646.21
USDT 1.00
SBD 2.70