#include<graphics.h>
#include<conio.h>
void main()
{
int gd = DETECT, gm, midx, midy;
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
settextstyle(SANS_SERIF_FONT,HORIZ_DIR,1);
midx = getmaxx()/2;midy = getmaxy()/2;
circle(midx-280,midy,30);
setfillstyle(LINE_FILL,YELLOW);
floodfill(midx-280,midy,WHITE);
setcolor(WHITE);
outtextxy(midx-310,midy+50,"LINE_FILL");
circle(midx-210,midy-110,30);
setfillstyle(LTSLASH_FILL,MAGENTA);
floodfill(midx-210,midy-110,WHITE);
setcolor(WHITE);
outtextxy(midx-270,midy-70,"LTSLASH_FILL");
circle(midx-140,midy,30);
setfillstyle(SLASH_FILL,GREEN);
floodfill(midx-140,midy,WHITE);
outtextxy(midx-190,midy+50,"SLASH_FILL");
circle(midx-70,midy-110,30);
setfillstyle(HATCH_FILL,BLUE);
floodfill(midx-70,midy-110,WHITE);
outtextxy(midx-110,midy-70,"HATCH_FILL");
circle(midx,midy,30);
setfillstyle(SOLID_FILL,RED);
floodfill(midx,midy,WHITE);
outtextxy(midx-40,midy+50,"SOLID_FILL");
circle(midx+70,midy-110,30);
setfillstyle(WIDE_DOT_FILL,YELLOW);
floodfill(midx+70,midy-110,WHITE);
outtextxy(midx+10,midy-70,"WIDE_DOT_FILL");
circle(midx+140,midy,30);
setfillstyle(CLOSE_DOT_FILL,MAGENTA);
floodfill(midx+140,midy,WHITE);
outtextxy(midx+60,midy+50,"CLOSE_DOT_FILL");
circle(midx+210,midy-110,30);
setfillstyle(INTERLEAVE_FILL,BLUE);
floodfill(midx+210,midy-110,WHITE);
outtextxy(midx+150,midy-70,"INTERLEAVE_FILL");
circle(midx+280,midy,30);
setfillstyle(XHATCH_FILL,WHITE);
floodfill(midx+280,midy,WHITE);
outtextxy(midx+215,midy+50,"XHATCH_FILL");
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.