[comp.lang.postscript] Better fill masks.

sellswor@jarthur.Claremont.EDU (Scott Ellsworth) (01/15/91)

  Hi all.

  I am using a personal laser writer IInt for some homebrew postscript
pictures involving lots of filled rectangles.  Someone has told me that
there is a modification to the setgrray routines that will improve them.
(By eyeball, it looked like they were basing the grey fills at 75 or 
a hundred dpi at most -- the pixels they filled in to get thier fills
were somewhat larger than 1/300th of an inch)

  Does anyone know of such a set of routines?  It looks like we are
getting 32-64 distinct grey levels; I thought a 300 dpi printer could do
better.

  Please reply directly if possible; I tend to get way behind in this group.

  Scott Ellsworth
  sellswor@jarthur.claremont.edu
  SELLSWORTH@HMCVAX

-- 
                                   Scott Ellsworth
                                   SELLSWOR@HMCVAX
                                   sellswor@jarthur.claremont.edu
   B.S. in Physics and Computers, May 1989.  Reasonable rates.  Inquire within

woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) (01/15/91)

In article <10315@jarthur.Claremont.EDU>, sellswor@jarthur.Claremont.EDU (Scott Ellsworth) writes:
> 
>   Does anyone know of such a set of routines?  It looks like we are
> getting 32-64 distinct grey levels; I thought a 300 dpi printer could do
> better.

From Don Lancasters Laserwriter corner #18.

screen desity   screen angle
50		0		->37 grays
50		5-10		->39 grays
50		15-20		->42 gray
50 		25-30		->35 grays 

etc. (the list is to large to type in here..)

normal default is

53 45 which provides 33 grays, and really is baaaad.

Here is Don's best gray

106 45 {dup mul exch dup mul add 1.0 exch sub} setscreen

This gives you a 9 level gray.

use 85 35 for reduced reproduction, 75 15 for halftone photos
and 135 25 for india ink wash effects.  (these are relly fine)
135 25 gives you only 6 grays but there are super.

There is a secret gray map program that I'll try to post.  It
is available on the Genie Roundtable.

Cheers
Woody