[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: ATM Homemade Ronchi Grating! It Works!



And finally, for those of us without CAD programs, here is a little
Postscript file that prints out a 100 lines per inch grating. You can
easily adjust the parameters in any text editor.

Marcus

%!PS-Adobe-1.0
%%Creator: Marcus E. Hennecke, June 4, 1997
%%EndComments

% Define some length units
/inch { 72 mul } def
/cm { 28.346457 mul } def

% Leave a margin
1 inch 1 inch translate

% Grid size
/Width 6.5 inch def
/Height 9 inch def

% Number of grid lines per inch
/Grid 100 def

% Relative line thickness (less than .5: lines thinner than blanks)
/Thickness .5 def

% Draw the grid
/dx 1 inch Grid div def
dx Thickness mul setlinewidth
0 dx Width {
  newpath
  0 moveto
  0 Height rlineto
  stroke
} for

showpage