al_draw_rectangle(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

hii bestie πŸ’– welcome to the al_draw_rectangle(3) page from the Library Functions Manual. It's Allegro 5 API business, and yes, we're gonna make it make sense. no cap.

✨ NAME ✨

al_draw_rectangle β€” Allegro 5 API. That's the name section, and honestly? iconic.

🌸 SYNOPSIS 🌸

the include and the signature, literally right here πŸ‘‡

#include <allegro5/allegro_primitives.h>

void al_draw_rectangle(float x1, float y1, float x2, float y2,
   ALLEGRO_COLOR color, float thickness)

πŸ’… DESCRIPTION πŸ’…

Draws an outlined rectangle. The way this is outlined and not a filled-in block? obsessed. πŸŽ€

Parameters, one by one:

  • x1, y1, x2, y2 β€” Upper left and lower right points of the rectangle. πŸ¦‹
  • color β€” Color of the rectangle. 🌈
  • thickness β€” Thickness of the lines; pass <= 0 to draw hairline lines. ⭐

🫢 SEE ALSO 🫢

go look at these too, iykyk:


okay bye bestie 🫢 source: Allegro reference manual; page: al_draw_rectangle(3); date/version: not shown on this page, so no fake timestamp from me πŸ’– periodt.

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms