al_draw_circle(3alleg5)
β¨ NAME β¨
al_draw_circle β it's giving Allegro 5 API, bestie π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_primitives.h>
void al_draw_circle(float cx, float cy, float r, ALLEGRO_COLOR color,
float thickness)
π DESCRIPTION π
Okay so picture this: you want a circle, right? But likeβ¦ an outline. Just the rim. The β¨edgeβ¨ of the circle. Not filled in, not solid, just the lil ring itself. That's literally what this does β it draws an outlined circle. π¦
π Parameters (the receipts)
cx,cyβ the center of the circle, bestie. That's where the heart of it lives. π«Άrβ the radius of the circle. Big r = big circle, small r = lil baby circle. Math is math. π₯colorβ the color of the circle. Obviously. Pick your vibe. πthicknessβ the thickness of the circle. And here's the tea, okay: pass<= 0and you get a hairline circle. Like, the thinnest thinnest. A single delicate strand of a circle. It's giving ethereal. β¨
No cap, <= 0 is the move for a hairline β zero is included in that, so don't come at me with "but what about exactly zero." Zero counts. Periodt. π
π SEE ALSO π
al_draw_filled_circle(3alleg5)β for when you want the circle full, not just the outline. Main character energy, filled in. πal_draw_ellipse(3alleg5)β the oval cousin. Same family, squished different. π₯
And that's the whole page, bestie!! This lil masterpiece lives in the Allegro reference manual β go draw some circles, you absolute icon. πβ¨ππ¦
π¦ 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