codice:
#include <allegro.h>
int main()
{
allegro_init();
install_keyboard();
set_color_depth(32);
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800, 600, 0, 0);
BITMAP *buf = create_bitmap(800, 600);
clear_to_color(buf, makecol (0,0,0));
circlefill(buf, 10, 10, 10, makecol(0,255,0));
circlefill(buf, 30, 10, 10, makecol(0,255,0));
circlefill(buf, 50, 10, 10, makecol(0,255,0));
circlefill(buf, 70, 10, 10, makecol(0,255,0));
circlefill(buf, 90, 10, 10, makecol(0,255,0));
circlefill(buf, 110, 10, 10, makecol(0,255,0));
circlefill(buf, 130, 10, 10, makecol(0,255,0));
circlefill(buf, 150, 10, 10, makecol(0,255,0));
circlefill(buf, 170, 10, 10, makecol(0,255,0));
circlefill(buf, 190, 10, 10, makecol(0,255,0));
circlefill(buf, 210, 10, 10, makecol(0,255,0));
circlefill(buf, 230, 10, 10, makecol(0,255,0));
blit(buf, screen, 0, 0, 0, 0, 800, 600);
while (!key[KEY_ESC]) {
destroy_bitmap(buf);
}
}
END_OF_MAIN();