Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <graphics.h>
- #include <stdio.h>
- #include <conio.h>
- void startgraphics(){
- int gd = DETECT, gm;
- initgraph(&gd, &gm, "");
- cleardevice();
- }
- void main(){
- startgraphics();
- moveto(320, 50);
- linerel(50, 50);
- linerel(-20, 0);
- linerel(20, 50);
- linerel(-20, 0);
- linerel(20, 50);
- linerel(-50, 0);
- linerel(0, 40);
- linerel(0, 0);
- linerel(0, -40);
- linerel(-50, 0);
- linerel(20, -50);
- linerel(-20, 0);
- linerel(20, -50);
- linerel(-20, 0);
- linerel(50, -50);
- setfillstyle(HATCH_FILL, GREEN);
- floodfill(320, 100, 15);
- getch();
- closegraph();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement