Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!jarthur!elroy.jpl.nasa.gov!cit-vax!vlsi!glennl From: glennl@vlsi.Caltech.Edu (Glenn M. Lewis) Newsgroups: comp.lang.postscript Subject: Color, stipple patterns, and overlaps Message-ID: <14061@cit-vax.Caltech.Edu> Date: 2 Mar 90 18:46:17 GMT Sender: news@cit-vax.Caltech.Edu Reply-To: glennl@vlsi.UUCP (Glenn M. Lewis) Distribution: na Organization: California Institute of Technology Lines: 27 [] 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 glewis%pcocd2.intel.com@Relay.CS.Net