Advertisement
Guest User

Flag Graphic

a guest
Nov 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. #include<graphics.h>
  2. #include<stdio.h>
  3. #include<conio.h>
  4. #include<stdlib.h>
  5. #include<dos.h>
  6. #include<math.h>
  7.  
  8. int main()
  9. {
  10.     int gdrive = DETECT, gmode;
  11.     initgraph(&gdrive, &gmode, "..\\bgi");
  12.  
  13.     setcolor(2);
  14.     rectangle(70,60,400,250);
  15.     setfillstyle(1,2);
  16.     floodfill(200,120,2);
  17.  
  18.     setcolor(4);
  19.     circle(240,160,50);
  20.     setfillstyle(1,4);
  21.     floodfill(240,160,4);
  22.  
  23.     setcolor(12);
  24.     rectangle(70,55,75,550);
  25.     setfillstyle(1,12);
  26.     floodfill(71,120,12);
  27.  
  28.     setcolor(12);
  29.     rectangle(20,550,120,600);
  30.     setfillstyle(1,12);
  31.     floodfill(30,555,12);
  32.     delay(100);
  33.  
  34.     getch();
  35.     return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement