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