🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7625

Re: Questions on Fill patterns ...

#7625
From: Glenn Reid
Date: Sat, 19 Nov 1988 01:32
25 lines
1574 bytes
> I am trying to generate fill or stipple patterns in postscript.  The
> ps cookbook shows you a way to do this.  The problem is that I
> want the overlapping fill patterns to be "or"ed together instead of
> the top pattern completely erasing the bottom one.  For example, I
> want:

The example in the Green Book uses font characters instead of the
"image" operator to accomplish pattern fills.  Among other advantages,
the patterns themselves are inherently "transparent", since font
characters work like "stroke" or "fill", and do not write the white
bits.  Give it a try.  Note that there is a "patternfill" and an
"opaquepatternfill" procedure defined.  The opaque version just fills
the region with "1 setgray" before it fills it with pattern.  Take your
pick.

I hope this helps....

Glenn Reid
Adobe Systems

P.S.  The green book programs are available through our file server,
although you still need the book to make much sense of them.  It does
save typing them in, however, and they are debugged :-).  Send a message
to "ps-file-server@adobe.COM" containing the text
"send Programs greenbook.shar"
Technical Details
Message-ID: <36@adobe.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!bellcore!texbell!killer!ames!mailrus!purdue!decwrl!adobe!greid
References: <1511@mit-caf.MIT.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!bellcore!texbell!killer!ames!mailrus!purdue!decwrl!adobe!greid
From: greid@adobe.com (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: Questions on Fill patterns ...
Message-ID: <36@adobe.COM>
Date: 19 Nov 88 01:32:24 GMT
References: <1511@mit-caf.MIT.EDU>
Sender: news@adobe.COM
Reply-To: greid@adobe.COM (Glenn Reid)
Organization: Adobe Systems Incorporated, Mountain View
Lines: 25