blob: f9e09a1fc283dda86edad49be78b3140e68bcc4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
% This is `chessfig10.mf' version 1.0 as of 8/90
% METAfounded by Piet Tutelaers (uucp: rcpt@urc.tue.nl)
% (If the filename is too long for your computer rename the file `chessf10.mf'
% and adapt chess.sty accordingly.)
% generates a font consisting of chess figurines
mode_setup;
input chessbase;
def figurine(expr code) =
beginchar(code, d#, .8d#, .2d#);
pickup pencircle scaled thin;
thin_pen:=savepen ; % for drawing pieces
pickup pencircle scaled thick;
thick_pen:=savepen; % for drawing inside pieces
define_whole_pixels(d);
scantokens code(d, 0, -.2);
endchar;
enddef;
M=1; % number of squares
d#:=10pt#/M; % size per square
thin#:=1/3pt#; thick#:=5/6pt#; define_blacker_pixels(thin, thick);
light=0; dark=1; white=0; black=1;
background:=light; color:=white;
figurine("K");
figurine("Q");
figurine("R");
figurine("B");
figurine("N");
figurine("p");
end;
|