PS_SETDASH(3)

πŸ’… PS_setdash β€” bestie, let's make that line go dash dash dash

okay so you know how a dashed line is literally just vibes alternating between "yes ink" and "no ink"? This is the function that decides how long each of those stretches is. That's it. That's the whole page. Short and iconic, honestly. πŸŽ€


✨ SYNOPSIS ✨

#include <pslib.h>

void PS_setdash(PSDoc *psdoc, float on, float off)

That's the whole signature, no cap. Give it a doc, give it two floats, and she's ready.


🌸 DESCRIPTION 🌸

PS_setdash sets the length of the black and white portions of a dashed line.

So like β€” on is the length of the black part (the ink, the moment, the main character energy πŸ–€) and off is the length of the white part (the gap, the little pause, the breath between beats 🀍). Change those two numbers and the whole rhythm of your line changes. It's giving set design for your strokes. Obsessed. πŸ’–


πŸ‘€ SEE ALSO πŸ‘€

  • PS_setpolydash(3) β€” the sibling function, off doing her own thing, go say hi πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Uwe Steinmann uwe@steinmann.cx. Respect the legend who wrote it down for us fr fr 🫢


and that's a wrap bestie πŸ’œ this whole thing lives in the Library Functions Manual, filed under PS_SETDASH(3), and it's the same title up top and down at the bottom because the page said so. slay, go dash something πŸ’…βœ¨

πŸ“¦ where this page comes from