#include <stdlib.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
#include <assert.h>
int
main (int argc, char **argv)
{
ALLEGRO_DISPLAY *disp;
bool status;
al_init ();
status = al_init_primitives_addon ();
assert (status);
disp = al_create_display (640, 480);
assert (disp);
al_set_target_backbuffer (disp);
assert ((1
>>24) <= RAND_MAX);
while (1)
{
int r;
r = rand ();
al_draw_circle (320, 240, 100,
al_map_rgb ((r >> 16) & 255,
(r >> 8) & 255,
(r >> 0) & 255),
1);
al_flip_display ();
al_rest (5);
}
return EXIT_SUCCESS;
}