al_draw_filled_ellipse(3)
π al_draw_filled_ellipse β Allegro 5 API β¨
Okay bestie, so this one is from the Allegro 5 API (the allegro_primitives girlies, you know the ones) and it is literally the easiest way to put a big fat filled oval on your screen. No cap. π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_primitives.h>
void al_draw_filled_ellipse(float cx, float cy, float rx, float ry,
ALLEGRO_COLOR color)
Yes bestie, that's the whole signature, copy it exactly, don't come for me about the line break π
β¨ DESCRIPTION β¨
It draws a filled ellipse. That's it. That's the vibe. π One solid, chunky oval, no hollow middle, no "haha just the outline," just full-on filled main character energy.
Here's the parameter tea, one by one π
cx,cyβ the Center of the ellipse. Like, where the heart of the oval lives. πrx,ryβ the Radii of the ellipse. Plural radiuses, the horizontal one and the vertical one, so you can make it wide or tall or perfectly round, your call. π¦colorβ the Color of the ellipse. TheALLEGRO_COLORit gets filled with. Pick something iconic. π
Lowkey a vibe check reminder:cx/cyandrx/ryarefloats andcoloris anALLEGRO_COLOR, so keep those types exactly as they are. π
π SEE ALSO π
al_draw_ellipse(3)β the outline-only sister, for when you want the rim but not the filling πal_draw_filled_circle(3)β the rounder bestie, when equal radii are just the mood π§
And that's the whole page, bestie β slay. πΈ
Source/version tea: this is straight from the Allegro reference manual, and the footer date stamp on it is the same as the header title page, al_draw_filled_ellipse(3) β so whenever you're reading this, that's the version you've got. Mwah. π π
π¦ 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