C graphics Concentric Circle

 Concentric Circle


* Graphics program of circle *


#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gdriver=DETECT,gmode;
int x,y;
initgraph(&gdriver, &gmode,"C://TURBOC3//bgi");
/*
x=getmaxx()/2;
y=getmaxy()/2;
setcolor(WHITE);
outtextxy(140,70,"Concentric Circle");
setcolor(RED);
circle(x,y,30);
setcolor(GREEN);
circle(x,y,50);
setcolor(YELLOW);
circle(x,y,70);
setcolor(BLUE);
circle(x,y,90);


* Some other function in Graphics in C *


circle(220,350,20);
line(50,50,100,100);
arc(50,50,30,180,30);
setcolor(BLUE);
outtext("Program is My name");
setcolor(BLUE);
floodfill(200,300,GREEN);*/
setfillstyle(HATCH_FILL,GREEN);
bar3d(200,300,450,200,50,20);
settextstyle(1,HORIZ_DIR,15);
outtext("ABCD");
rectangle(100,400,400,300);getch();
closegraph();
getch();
}



Comments

Popular posts from this blog

About RAM

Star Topology