PS_SHFILL(3)
π PS_SHFILL β ok bestie, let's talk about drawing a shading
So this page lives in the Library Functions Manual, and the function is literally called PS_shfill. Yes, that name is a whole lie, and we're gonna get into that. Sit down, hydrate, let's go. π¦
β¨ SYNOPSIS β¨
#include <pslib.h>
void PS_shfill(PSDoc *psdoc, int shading)
That's it. That's the whole signature. Two args, no return value, no drama. πΈ
π DESCRIPTION π
Okay so what this does: it draws the shading whose id you hand it in the parameter shading. That's it, that's the job.
Now. The name. The name of this function is somewhat misleading, and I need you to internalise that, because the vibes are off. It does not fill an area the way PS_fill(3) does. It's not that girl. What it actually does is simply draw the shading without any bounding box. No box, no border, no boundaries, no containment β it just goes. π
So if you do want to restrict the shading to a certain area? You're gonna have to call PS_clip(3) before you call this. That's the move. Clip first, then shade. No cap.
Also lowkey a pro tip from the manpage itself: using PS_shfill(3) is often easier than creating a shading pattern with PS_shading_pattern(3) and then using that pattern for filling. So like... just do the easy thing?? The easy thing ate. π
π SEE ALSO π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. Respect the author, always. π«Ά
and that's the whole page, bestie β you're now fluent in PS_shfill π
Signing off from the Library Functions Manual, page PS_SHFILL(3), because that's what the footer says and I'm nothing if not honest about my sources. Slay, go clip something, mwah π§β¨
π¦ 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