#include <allegro.h>
int main(int argc, char *argv[])
{
allegro_init();
install_keyboard();
set_color_depth(32);
set_gfx_mode(GFX_AUTODETECT, 1024,768,0,0); ;
BITMAP *buffer = create_bitmap(1024,768);
int x = 0;
int y = 0;
int r = 0;
while(!key[KEY_ESC])
{
if (r == 100) r = 0;
r+=1;
circlefill(buffer,1024/2,768/2,r,makecol(255, 255,0));
blit(buffer, screen, 0,0,0,0,1024,768);
clear_to_color(buffer, makecol(255, 255, 255));
}
}
END_OF_MAIN()
|