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.25
TRX 0.20
JST 0.038
BTC 94129.96
ETH 3496.79
USDT 1.00
SBD 3.78