PS_MAKESPOTCOLOR(3)
β¨ PS_makespotcolor β Library Functions Manual β¨
okay bestie, welcome to PS_makespotcolor(3), a whole page from the Library Functions Manual and it's giving "tiny function, big responsibility" π
πΈ NAME πΈ
PS_makespotcolor β Create a spotcolor
π¦ SYNOPSIS π¦
#include <pslib.h>
int PS_makespotcolor(PSDoc *psdoc, const char *name, int reserved)
π DESCRIPTION π
So basically it creates a spot color, and it builds that spot color out of whatever your current fill color is. That's the whole vibe.
The fill color must be a gray, rgb, or cmyk color β those three, no substitutions, no cap π«
And then the spot color id that this function hands back to you? You must pass it to PS_setcolor(3) as the fourth parameter. Not the third, not "wherever, it'll figure it out" β the fourth one. iykyk π«Ά
π₯ RETURN VALUE π₯
- the id of the shiny new spot color β slay β¨
- or
0if something went wrong π (that's the error case, fr fr)
π SEE ALSO π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
and that's the whole page, bestie!! π the footer down at the bottom just echoes PS_MAKESPOTCOLOR(3) right back at you, no version drama, no date reveal β iconic of it honestly. go forth and make some spotcolors π
π
π¦ 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