C Graphics FLAG Program

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
  int gd=0,gm;
    initgraph(&gd,&gm,"C://TC//BGI");
setfillstyle(SOLID_FILL,YELLOW);
bar(200,30,300,50);
setfillstyle(SOLID_FILL,WHITE);
bar(200,50,300,70);
setfillstyle(SOLID_FILL,GREEN);
bar(200,70,300,90);
setcolor(BLACK);
circle(250,60,10);
line(250,50,250,70);
line(240,60,260,60);
setfillstyle(SOLID_FILL,BROWN);
bar(190,25,200,350);
setfillstyle(SOLID_FILL,YELLOW);
fillellipse(195,355,30,5);
setfillstyle(SOLID_FILL,WHITE);
fillellipse(195,365,50,5);
setfillstyle(SOLID_FILL,GREEN);
fillellipse(195,375,70,5);
 getch();
}

OUTPUT :



For Practical implementation click on the video given below



Comments

Popular posts from this blog

C Graphics Moving CAR Program

How To Draw a Hut in C Graphics