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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
\documentclass{ppex}
\nonstopmode
\usepackage {pstall}
\pagestyle{empty}
\begin{document}
\ResetPreambleCommands
\ReadyForTheFray
\usepackage {pstall}
\definecolor{pink}{rgb}{1, .75, .8}
\definecolor{wheat}{rgb}{.96, .87, .7}
\definecolor{lightblue}{rgb}{.68, .85, .9}
\definecolor{brown}{rgb}{.65, .16, .16}
\definecolor{palegreen}{rgb}{.6, .98, .6}
\definecolor{white}{rgb}{1, 1, 1 }
\DeclareFixedFont{\curly}{T1}{pzc}{m}{it}{30}
%
% The cat is designed to appear on a 10 x 10 grid
% cat head
\def\Cathead{%
\pscircle[fillcolor=black](5,4.2){2.5}%
% ears
\bgroup
\psset{linecolor=black,fillcolor=pink,linewidth=.05,linestyle=solid}
\rput{45}(5,4.2){\pspolygon(2.5,.5)(2.5,-.5)(3.5,0)}
\rput{135}(5,4.2){\pspolygon(2.5,.5)(2.5,-.5)(3.5,0)}
\egroup
}
% eyes, nose and whiskers
\def\Catface{%
\pscircle[fillcolor=yellow](4,5.2){.5}
\psdiamond[fillcolor=gray](4,5.2)(.2,.5)
\pscircle[fillcolor=yellow](6,5.2){.5}
\psdiamond[fillcolor=gray](6,5.2)(.2,.5)
% nose
\rput{180}(5,4.6){\pstriangle[fillcolor=pink](.5,.5)}
% whiskers
\bgroup
\psset{linecolor=white,linestyle=solid,linewidth=.1}
\rput{5}(5,4.2){\psline(.8,0)(1.8,0)}
\rput{15}(5,4.2){\psline(.8,0)(1.8,0)}
\rput{165}(5,4.2){\psline(.8,0)(1.8,0)}
\rput{175}(5,4.2){\psline(.8,0)(1.8,0)}
\egroup
}
% paws
\def\Catpaws{%
\pscircle[fillcolor=black](1,4.2){.8}
\pscircle[fillcolor=black](9,4.2){.8}
% claws
\bgroup
\psset{fillcolor=yellow}
\def\clawsize{.4,.4}
\rput{180}(1,4.4){\pstriangle(\clawsize)}
\rput{180}(1,4.4){\pstriangle(-.45,0)(\clawsize)}
\rput{180}(1,4.4){\pstriangle(.45,0)(\clawsize)}
\rput{180}(9,4.4){\pstriangle(\clawsize)}
\rput{180}(9,4.4){\pstriangle(-.45,0)(\clawsize)}
\rput{180}(9,4.4){\pstriangle(.45,0)(\clawsize)}
\egroup
}
% wall
\def\Wall{%
\psframe[fillcolor=brown](0,0)(10,4)
}
% The whole cat on its wall
\def\Cat#1{%
{\psset{unit=#1}
\Cathead\Catface\Catpaws\Wall}%
}
% bricks
\def\Bricks{%
\bfseries\large
\psset{fillcolor=wheat}
\psframe(1,.4)(2.5,1.9)
\rput[bl](1.1,1){\LaTeX}
\psframe(5,.4)(6.3,1.9)
\psframe(7,.4)(8.5,1.9)
\psframe(2,2.2)(3.2,3.7)
\rput[bl]{90}(2.6,2.4){\normalsize$e=mc^2$}
\psframe(5.3,2.2)(8,3.7)
\rput[bl](5.4,2.8){\textsc{PostScript}}
}
\begin{pspicture}(10,8)
\psset{fillstyle=solid,linestyle=none,linewidth=0}
\psframe[fillcolor=lightblue](10,8)
\Cat{1}
\rput[bl]{5}(1,1){\curly\color{white}Don Knuth Rules OK}
\Bricks
\rput(7,1){\Cat{.1}}
\rput(.1,2){\Cat{.15}}
\end{pspicture}
\end{document}
|