al_draw_rounded_rectangle(3alleg5)
β¨ NAME β¨
okay so this is al_draw_rounded_rectangle β it's part of the Allegro 5 API bestie, and it literally draws you a rounded rectangle outline π
πΈ 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, okay? Just the outline, the lil border vibe π (if you want the filled one, that's a whole other function, scroll down to SEE ALSO babes).
Here's the parameters breakdown, no cap:
x1,y1,x2,y2β the upper left and lower right points of the rectangle π«Άcolorβ the color of the rectangle, obviously πrx,ryβ the radii of the round π¦ (yes, both of them, x and y, because circles are so last season)thicknessβ thickness of the lines, and listen: pass<= 0to draw hairline lines β¨
not me warning you that the thickness thing is a real gotcha β if you want hairlines, go <= 0, fr fr π
π SEE ALSO π
okay that's the whole page bestie, go forth and draw your cute little rounded rectangles, you're gonna slay π
this was brought to you by the Allegro reference manual β al_draw_rounded_rectangle(3alleg5), mwah πβ¨
π¦ 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