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
- 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