al_draw_ellipse(3alleg5)
β¨ al_draw_ellipse β¨
okay bestie, so this one lives in the Allegro 5 API and it's literally the moment your primitives era begins π
π NAME π
al_draw_ellipse β draw an outlined ellipse, no cap, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_primitives.h>
void al_draw_ellipse(float cx, float cy, float rx, float ry,
ALLEGRO_COLOR color, float thickness)
like. look at her. six params and she's serving primitives header energy π
π DESCRIPTION π
She draws an outlined ellipse β just the ring, not the filled-in situation. Outlined. Filled is a whole other function, we'll get there, don't worry π«Ά
Here's the cast of characters, aka the parameters:
cx,cyβ the center of the ellipse. that's her main character location πrx,ryβ the radii of the ellipse. two of them because she's an ellipse and she's got range πcolorβ the color of the ellipse. obviously πthicknessβ the thickness of the ellipse. and here's the tea: pass<= 0to draw a hairline ellipse β¨
not me emphasizing this but fr fr: thickness <= 0 = hairline. it's giving delicate. it's giving effortless. remember it π
π SEE ALSO π
al_draw_filled_ellipse(3alleg5)β for when you want her solid πal_draw_circle(3alleg5)β the round sibling, iykyk β
and that's the page bestie!! πΈ this was the Allegro reference manual, al_draw_ellipse(3alleg5), go forth and draw your little outlined ellipses, slay π
ππ
π¦ 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