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