al_draw_filled_rectangle(3alleg5)
β¨ NAME β¨
al_draw_filled_rectangle β it's giving Allegro 5 API, bestie π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_primitives.h>
void al_draw_filled_rectangle(float x1, float y1, float x2, float y2,
ALLEGRO_COLOR color)
π DESCRIPTION π
okay so lowkey the whole job here is: it draws a filled rectangle. that's it, that's the vibe. solid block of colour. no cap. π«Ά
π Parameters
x1,y1,x2,y2β the upper left and lower right points of the rectangle. like, corner one and corner opposite-corner. that's the whole shape right there β¨colorβ the colour of the rectangle. obviously. it's theALLEGRO_COLORyou're painting the whole thing in π
π SEE ALSO π
al_draw_rectangle(3alleg5)β same energy but it's just the outline, no fill πal_draw_filled_rounded_rectangle(3alleg5)β filled and rounded, highkey the glow-up version π¦
and that's the whole page, bestie, we ate π this one came straight out of the Allegro reference manual β periodt π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms