Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <allegro.h>
- int main(){
- allegro_init();
- install_keyboard();
- set_color_depth(32);
- set_gfx_mode(GFX_AUTODETECT_WINDOWED,256,256,0,0);
- for(int column = 0;column < 255;column++){
- for(int row = 0;row < 255;row++){
- putpixel(screen,column,row,makecol(column,row,128));
- }
- }
- readkey();
- return 0;
- }
- END_OF_MAIN()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement