#include"graphics.h" #include"conio.h" void main() { int gd=DETECT,gm,x,y; initgraph(&gd,&gm,"c:\\tc\\bgi"); x=getmaxx(); y=getmaxy(); clearviewport(); setfillstyle(LINE_FILL,BLUE); bar(0,0,639,479); setcolor(6); rectangle(50,50,300,200); setfillstyle(SOLID_FILL,6); bar(50,50,300,100); setfillstyle(SOLID_FILL,WHITE); bar(50,100,300,150); setfillstyle(SOLID_FILL,GREEN); bar(50,150,300,200); setcolor(BLUE); rectangle(45,45,50,300); setfillpattern(0x20,MAGENTA); bar(45,45,50,400); setcolor(BLUE); circle(175,125,25); line(175,125,200,125); line(175,125,175,150); line(175,125,150,125); line(175,125,175,100); line(175,125,159,107); line(175,125,193,143); line(175,125,159,143); line(175,125,193,107); setcolor(YELLOW); rectangle(0,0,640,43); setfillstyle(SOLID_FILL,YELLOW); bar(0,0,640,43); setcolor(BLACK); settextstyle(1,HORIZ_DIR,5); outtextxy(150,0,"INDIAN FLAG"); getch(); }
|
No responses found. Be the first to respond and make money from revenue sharing program.
|