al_clear_to_color(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

hey bestie, welcome to the al_clear_to_color(3alleg5) manual page β€” Allegro 5 API. it's giving "wipe the canvas" energy, but make it Allegro. πŸŽ€


✨ NAME ✨

al_clear_to_color β€” Allegro 5 API. no cap, that's the whole name section. πŸ’…


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_clear_to_color(ALLEGRO_COLOR color)
yes, no semicolon in the synopsis, bestie. we copy the manpage exactly. don't come for me. 😭

✨ DESCRIPTION ✨

So al_clear_to_color clears the complete target bitmap β€” the whole thing β€” but it's confined by the clipping rectangle. 🫢

That means the clipping rectangle is the vibe check: the clear happens inside its boundaries. The target bitmap gets cleared, but the clipping rectangle has main character energy and keeps it contained. 🌈

The function takes an ALLEGRO_COLOR color, and it's literally called al_clear_to_color, so you already know the assignment. ✨


✨ SEE ALSO ✨


source/version check: this was the Allegro reference manual, page al_clear_to_color(3alleg5), Allegro 5 API. date? the original footer didn't give one, so we're lowkey timeless β€” no cap. πŸ’–βœ¨

πŸ“¦ where this page comes from