PS_SHADING_PATTERN(3)

πŸ’– PS_shading_pattern(3) β€” from the Library Functions Manual πŸ’–

okay bestie, sit down, hydrate, and let me tell you about the glow-up of patterns ✨


🌸 NAME 🌸

PS_shading_pattern β€” bestie, it creates a shading pattern. that's the whole job. iconic behavior honestly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pslib.h>

int PS_shading_pattern(PSDoc *psdoc, int shading, const char *optlist)

like. three args. we love a low-maintenance function fr fr 🫢


✨ DESCRIPTION ✨

okay so this function makes a very special little guy: a pattern, but make it a shading pattern. it's a whole special type of pattern, not like the regular ones.

here's the tea β˜• β€” shading patterns can be used exactly like regular patterns, no cap. the difference? they're made out of a given shading that you already created earlier with PS_shading(3). so like, you gotta do that step first, bestie. it's giving prerequisites. it's giving "you can't skip the tutorial level" 😭


πŸŽ€ RETURN VALUE πŸŽ€

it hands you back the identifier of the pattern β€” yay! πŸŽ‰ or it returns zero if something went wrong, which is the error vibe. sad. tragic. we don't claim it.

and the identifier? it's a positive number. so if you get a zero back, that's not a pattern, that's a cry for help πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

the squad, the friend group, the ones you should also be reading:


πŸ’œ AUTHOR πŸ’œ

this manual page was written by Uwe Steinmann uwe@steinmann.cx β€” thank you for your service, king πŸ‘‘


sign-off: this whole thing lives in the Library Functions Manual and answers to the name PS_SHADING_PATTERN(3), so if you ever need to find it again, that's where she'll be πŸ’– go make something pretty with your shadings, bestie, and remember: zero means error, positive means slay βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from