Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <allegro.h>
- #include<conio.h>
- int main()
- {
- allegro_init();
- install_keyboard();
- install_timer();
- set_color_depth(32);
- set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800 , 600, 0, 0);
- while (!key[KEY_ESC]){
- rectfill(screen, 100, 40, 200, 200, makecol(255,255,255));
- rectfill(screen, 300, 40, 400, 200, makecol(255,255,255));
- rectfill(screen, 500, 40, 600, 200, makecol(255,255,255));
- rectfill(screen, 100, 300, 200, 470, makecol(255,255,255));
- rectfill(screen, 300, 300, 400, 470, makecol(255,255,255));
- rectfill(screen, 500, 300, 600, 470, makecol(255,255,255));
- }
- return 0;
- }
- END_OF_MAIN();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement