al_draw_circle(3alleg5)

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

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


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