PS_CIRCLE(3)

πŸ’– PS_CIRCLE β€” bestie, we're drawing a circle πŸ’–

okay so. this is the manual page for PS_circle, from section 3 (library functions, the fun one). she's short, she's sweet, she draws a circle. no cap. let's go 🫢


✨ SYNOPSIS ✨

#include <pslib.h>

void PS_circle(PSDoc *psdoc, float x, float y, float radius)

that's it. that's the whole thing. she returns void (so like, nothing, she's mysterious πŸ’…) and she takes a PSDoc *psdoc plus three floats: x, y, and radius.


🌸 DESCRIPTION 🌸

PS_circle draws a circle. the middle point of that circle lives at (x, y) β€” that's her center, her main character position, her whole vibe. πŸ‘‘

and the circle starts and ends at position (x+radius, y). so like, the pen puts the first dot down at x+radius, y, swoops all the way around, and lands right back there. full 360, ate and left no crumbs. 🌈

now here's where it gets spicy πŸ”₯ β€” what happens depends on where you call her:

  • if you call this function outside a path, she starts a new path for you. fresh start, new era, we love that ✨
  • if you call her within a path, she adds the circle as a subpath. nesting energy. cute. πŸŽ€
⚠️ but bestie, listen: if the last drawing operation does not end in point (x+radius, y), then there will be a gab in the path. yes, "gab". that's what the page says, that's the typo, and honestly? we respect it. it means gap β€” a lil break in your path. don't let your drawing operations leave you hanging at the wrong coordinate or you'll get the gab. 😭

πŸ‘€ SEE ALSO πŸ‘€

go read those too, they're giving sibling energy πŸ¦‹


πŸ’œ AUTHOR πŸ’œ

This manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service, king πŸ‘‘


and that's the whole page, fr fr β€” PS_CIRCLE(3) from the Library Functions Manual, section 3, all wrapped up. drink water, close your paths properly, and go draw a circle bestie πŸ’–πŸŒ·βœ¨

πŸ“¦ where this page comes from