al_draw_elliptical_arc(3alleg5)
π al_draw_elliptical_arc π
okay so bestie, we're in the Allegro 5 API section of the Allegro reference manual (that's the 3alleg5 corner of the library, iykyk), and today's main character is al_draw_elliptical_arc. it draws a lil arc. an elliptical one. it ate, honestly. π
β¨ NAME β¨
al_draw_elliptical_arc β the Allegro 5 API function that draws an elliptical arc π
π SYNOPSIS π
#include <allegro5/allegro_primitives.h>
void al_draw_elliptical_arc(float cx, float cy, float rx, float ry, float start_theta,
float delta_theta, ALLEGRO_COLOR color, float thickness)
π¦ DESCRIPTION π¦
Draws an elliptical arc. that's it, that's the vibe. but let's get into the deets because the parameters are where the plot is:
Parameters:
cx,cyβ Center of the arc π―rx,ryβ Radii of the arc πcolorβ Color of the arc π¨start_thetaβ The initial angle from which the arc is calculated in radians πdelta_thetaβ Angular span of the arc in radians (pass a negative number to switch direction) πthicknessβ Thickness of the arc, pass<= 0to draw hairline arc β¨
not me obsessed with delta_theta going negative and flipping the whole direction like a plot twist π
β SINCE β
5.0.6, 5.1.0 β so she's been iconic for a minute π
πΈ SEE ALSO πΈ
and that's the page, bestie π«Ά straight from the Allegro reference manual, documented as of the al_draw_elliptical_arc(3alleg5) era (and living since 5.0.6 / 5.1.0). go draw something gorgeous, no cap. π
π¦ 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