al_draw_elliptical_arc(3alleg5)

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

πŸ’– 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 <= 0 to 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