[comp.lang.postscript] Color, stipple patterns, and overlaps

glennl@vlsi.Caltech.Edu (Glenn M. Lewis) (03/03/90)

[]

	I need to create a program that reads CIF (Caltech Intermediate Form)
files (which describe VLSI mask-level geometry) and then writes a PostScript
file that is a "plot" of the geometry.

	I need to be able to plot either 32 colors or 32 gray-scale stipple
patterns, preferably in a device-independent manner.  In other words, can
I create a PostScript file that will take advantage of a Color PostScript
printer while at the same time will use stipple patterns if using a
Black-and-White PostScript pattern?

	My second question involves OR'ing these stipple patterns.  When
rectangles overlap, I need to make sure that the user sees them as overlapping.
It looks like when I create a new filled-rectangle, it over-writes the area
that overlaps.  How do I handle this situation, without having to search for
all rectangle intersections and creating a new pattern?  If possible, I
would also like this to work for color... i.e. a new color is created
when two overlap.

	Thanks for all your help!  Please respond via e-mail, as this is
probably not of general Net-Use.  (Pretty awesome play on words, eh?)

							-- Glenn Lewis

glennl@vlsi.caltech.edu        <OR>         glewis%pcocd2.intel.com@Relay.CS.Net