al_draw_ellipse(3alleg5)

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

✨ 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 <= 0 to 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 πŸ‘€


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