AL_DRAW_ROUNDED_RECTANGLE(3)

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

🌸 NAME 🌸

okay so we're in the Library Functions Manual, section 3, and this page is from the Allegro reference manual β€” and the main character is al_draw_rounded_rectangle, obvi. It's part of the Allegro 5 API, and it's here to draw you an outlined rounded rectangle. slay.


✨ SYNOPSIS ✨

#include <allegro5/allegro_primitives.h>

void al_draw_rounded_rectangle(float x1, float y1, float x2, float y2,
   float rx, float ry, ALLEGRO_COLOR color, float thickness)

πŸŽ€ DESCRIPTION πŸŽ€

It draws an outlined rounded rectangle. Not filled, bestie β€” outlined. The little parameter squad is giving very much:

  • x1, y1, x2, y2 β€” upper left and lower right points of the rectangle πŸ’…
  • color β€” color of the rectangle 🌈
  • rx, ry β€” the radii of the round πŸŒ€
  • thickness β€” thickness of the lines; pass <= 0 to draw hairline lines πŸ‘‘ (yes, hairline β€” iconic)
no cap, the thickness detail matters: if you pass <= 0, you get hairline lines. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

go bother these pages next, bestie:


that's the whole page, from the Allegro reference manual β€” al_draw_ro...d_rectangle(3) β€” and that's the sign-off, 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