Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include <allegro.h>
  2. #include<conio.h>
  3. int main()
  4. {
  5. allegro_init();
  6. install_keyboard();
  7. install_timer();
  8. set_color_depth(32);
  9. set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800 , 600, 0, 0);
  10.  
  11.  
  12. while (!key[KEY_ESC]){
  13. rectfill(screen, 100, 40, 200, 200, makecol(255,255,255));
  14.  
  15. rectfill(screen, 300, 40, 400, 200, makecol(255,255,255));
  16.  
  17. rectfill(screen, 500, 40, 600, 200, makecol(255,255,255));
  18.  
  19. rectfill(screen, 100, 300, 200, 470, makecol(255,255,255));
  20.  
  21. rectfill(screen, 300, 300, 400, 470, makecol(255,255,255));
  22.  
  23. rectfill(screen, 500, 300, 600, 470, makecol(255,255,255));
  24. }
  25.  
  26.  
  27.  
  28. return 0;
  29.  
  30. }
  31. END_OF_MAIN();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement