PS_ARCN(3)
β¨ PS_ARCN(3) β¨
okay bestie, welcome to the PS_ARCN(3) page from the Library Functions Manual π this one is short, sweet, and honestly kinda iconic β it's all about drawing arcs the clockwise way π
πΈ NAME πΈ
PS_arcn β draws an arc clockwise ππ«
π SYNOPSIS π
#include <pslib.h>
void PS_arcn(PSDoc *psdoc, float x, float y, float radius, float alpha,
float beta)
like look at that signature, it's giving "I know exactly what I'm doing" π
π¦ DESCRIPTION π¦
So here's the tea π: this function draws a portion of a circle, and the middle point of that circle sits at (x, y) β that's your center, your main character location π
The arc starts at an angle of alpha and ends at an angle of beta. And here's the thing you literally cannot forget β it's drawn clockwise π no cap.
Now the sneaky lil detail that lowkey matters: the subpath that gets added to the current path starts on the arc at angle beta and ends on the arc at angle alpha. Yeah bestie, they're flipped from how you'd expect π so it starts at beta and ends at alpha. Write that down. Tattoo it. Whatever works π«Ά
π SEE ALSO π
PS_arc(3)β the counterclockwise sibling, iykyk β¨PS_circle(3)β when you want the whole circle, not just a slice π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. absolute legend behavior, we love to see it π
okay that's the whole page, bestie!! no notes, ate and left no crumbs π½οΈβ¨ this was PS_ARCN(3) from the Library Functions Manual β go draw some clockwise arcs and slay π ππ¦
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms