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