PS_SAVE(3)

✨ PS_save β€” the glow-up of your graphics state ✨

okay bestie, listen up, this is <pink>PS_save</pink> from the <purple>pslib</purple> library, manual section <cyan>3</cyan> (that's the library functions girlies, not the shell commands) πŸ’–


🌸 SYNOPSIS 🌸

the whole vibe, verbatim:

#include <pslib.h>

void PS_save(PSDoc *psdoc)

πŸŽ€ DESCRIPTION πŸŽ€

so like. <hotpink>PS_save</hotpink> does the most iconic thing ever: it saves the current graphics context. 🫢

and what even is a graphics context, you ask? it's the whole lil bundle of your current settings, and that bundle contains your <lavender>colors</lavender>, your <lavender>translation and rotation settings</lavender>, and honestly <rainbow>some more</rainbow> stuff too, iykyk. it's giving "screenshot my entire aesthetic before I do something unhinged" πŸ’…

the way that a saved context can be restored later with <cyan>PS_restore(3)</cyan>?? that's the plot twist. save now, restore whenever. no cap. πŸ”₯

ngl this is basically a ctrl+s for your drawing state. go off, main character. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • <cyan>PS_restore(3)</cyan> β€” the one who brings your context back, literally the other half of this duo πŸ’œ

πŸ’– AUTHOR πŸ’–

this manual page was written by <peach>Uwe Steinmann</peach> <peach>uwe@steinmann.cx</peach>. thank you for your service, king 🫑✨


and that's the whole page bestie!! this lil cutie came from the <mint>Library Functions Manual</mint>, it's the <mint>PS_SAVE(3)</mint> page, and the source/version + date live right there in that footer energy 🌈⭐ mwah, go save some contexts πŸ’…πŸŽ€

πŸ“¦ where this page comes from