floodfill(3alleg4)
π floodfill π
okay bestie, welcome to the Allegro manual β this one's floodfill(3alleg4), straight out of the Allegro game programming library, and it's literally the "fill bucket" tool from MS Paint but make it β¨Cβ¨. no cap.
πΈ NAME πΈ
floodfill β floodfills an enclosed area. she's an Allegro game programming library girlie π
β¨ SYNOPSIS β¨
#include <allegro.h>
void floodfill(BITMAP *bmp, int x, int y, int color);
like, that's it. that's the whole vibe. short, sweet, iconic π
π¦ DESCRIPTION π¦
okay so here's the tea π: floodfill takes an enclosed area and fills it all in with the color you picked.
where does it start, you ask? at the point (x, y) β that's your little seed pixel, your main character, the spot where the spill begins π
. and it spreads out from there filling the enclosed area with the specified color.
it's giving "paint bucket tool, but I'm a C function and I have no chill." π
fr fr, if your area isn't actually enclosed, that fill is gonna leak everywhere like gossip in a group chat π so maybe double-check your boundaries first, bestie.
π SEE ALSO π
drawing_mode(3alleg4)β your go-to for changing up how drawing happens ποΈmakecol(3alleg4)β how you actually cook up that color value in the first place π¨
and that's the whole page, bestie!! slay π this was floodfill from the Allegro manual, version 4.4.3 β periodt. go fill something pretty, you absolute icon π«Άβ¨πΈ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms