Debian Codegraph @

texmf-dist/doc/fonts/bartel-chess-fonts/other-sources/pkscreengrid.mf

raw
1 % This is
2 % pkscreengrid.mf
3 %
4 % Copyright (C) 1989-92 by Elmar Bartel.
5 %
6 % This program is free software; you can redistribute it and/or modify
7 % it under the terms of the GNU General Public License as published by
8 % the Free Software Foundation; either version 1, or (at your option)
9 % any later version.
10 %
11 % This program is distributed in the hope that it will be useful,
12 % but WITHOUT ANY WARRANTY; without even the implied warranty of
13 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 % GNU General Public License for more details.
15 %
16 % You should have received a copy of the GNU General Public License
17 % along with this program; if not, write to the Free Software
18 % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 %
20
21
22 vardef ScreenGrid(text xlist,ylist) =
23 xmin:= min(xlist); xmax:= max(xlist);
24 ymin:= min(ylist); ymax:= max(ylist);
25 for x=xlist: screenrule((x,ymin),(x,ymax)); endfor
26 for y=ylist: screenrule((xmin,y),(xmax,y)); endfor
27 enddef;