Kite Making using Computer Graphics

in #programming5 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.28
TRX 0.11
JST 0.031
BTC 68611.07
ETH 3913.05
USDT 1.00
SBD 3.61