al_draw_fille...ded_rectangle(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_draw_filled_rounded_rectangle ✨

okay bestie, so this is a page straight outta the Allegro 5 API reference manual, and it's literally the blueprint for drawing a filled rounded rectangle πŸ’… no cap, that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

al_draw_filled_rounded_rectangle β€” Allegro 5 API

like, that's the name of the function and it belongs to the Allegro 5 API. iconic, we love a clear identity πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro_primitives.h>

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

first things first, you gotta pull in that header:

#include <allegro5/allegro_primitives.h>

and here's the function signature, copy it exactly bestie, don't be out here improvising:

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

πŸŽ€ DESCRIPTION πŸŽ€

so the tea is: this draws an filled rounded rectangle ✨ (yes, "an filled", the original said it, we're keeping it, periodt).

Parameters, aka the receipts:

  • x1, y1, x2, y2 β€” the upper left and lower right points of the rectangle πŸ“
  • color β€” the color of the rectangle 🎨
  • rx, ry β€” the radii of the round πŸŒ€

that's it, that's the whole function. she's simple, she's effective, she's giving main character energy πŸ‘‘


🌈 SEE ALSO 🌈

go read those too, they're the besties of this function fr fr πŸ’œ


Allegro reference manual energy only, mwah πŸ’‹ stay slay, go draw some rounded rectangles, and remember: fill responsibly πŸ“βœ¨

πŸ“¦ where this page comes from