Debian Codegraph @

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

raw
1 % This is
2 % pkmakeneutral.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 def MakeNeutral(expr White,Black) =
21 if unknown LeftHalft: picture LeftHalf; fi
22 LeftHalf:= Black;
23 cull LeftHalf keeping (1,infinity);
24 addto LeftHalf contour (unitsquare yscaled qs xscaled (qs/2));
25 cull LeftHalf keeping (2,2);
26
27 if unknown RightHalf: picture RightHalf; fi
28 RightHalf:= White;
29 cull RightHalf keeping (1,infinity);
30 addto RightHalf contour
31 (unitsquare yscaled qs xscaled (qs/2) shifted (qs/2,0));
32 cull RightHalf keeping (2,2);
33 NeutralMan:= LeftHalf;
34 addto NeutralMan also RightHalf;
35 enddef;