clear_bitmap(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– clear_bitmap(3) πŸ’–

ok so this is a page from the Allegro manual β€” yes bestie, the Allegro game programming library, we love her πŸŽ€ β€” and today's main character is clear_bitmap. it's short, it's sweet, it does exactly one thing, and it does it flawlessly. no cap. πŸ‘‘


✨ NAME ✨

clear_bitmap β€” wipes your bitmap clean and paints it all in color 0. it's giving fresh-start energy fr fr. part of the Allegro game programming library. πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro.h>

void clear_bitmap(BITMAP *bitmap);

look at her. one function, one argument, zero drama. πŸ’…


✨ DESCRIPTION ✨

okay so here's the tea πŸ“: clear_bitmap clears the bitmap to color 0.

that's it. that's the whole thing. she takes your bitmap and resets it to color 0, and honestly? iconic behavior. sometimes you just need a blank canvas before you start painting your masterpiece. 🌸


✨ SEE ALSO ✨

  • clear_to_color(3) β€” if you want a different color than 0, go bother her instead πŸ’œ

mwah πŸ’‹ that's the whole page, you're basically an Allegro girlie now.

this lil legend comes to you straight from the Allegro manual, version 4.4.3. go clear some bitmaps, bestie, I believe in you 🫢✨🌈

πŸ“¦ where this page comes from