DOKK / manpages / debian 10 / allegro4-doc / clear_to_color.3alleg4.en
clear_to_color(3alleg4) Allegro manual clear_to_color(3alleg4)

clear_to_color - Clears the bitmap to the specified color. Allegro game programming library.

#include <allegro.h>

void clear_to_color(BITMAP *bitmap, int color);

Clears the bitmap to the specified color. Example:


/* Clear the screen to red. */
clear_to_color(bmp, makecol(255, 0, 0));

clear_bitmap(3alleg4), makecol(3alleg4)

version 4.4.2 Allegro