<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 6-7-40 on page 446.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{348.0pt}
\AtBeginDocument{\psset{unit=.8}}
\StartShownPreambleCommands
\usepackage{pst-ob3d}
\StopShownPreambleCommands
\begin{document}
\ThreeDput{\psframe[fillstyle=solid,fillcolor=black!15](6,6)
           \psgrid[subgriddiv=0,gridlabels=0,griddots=5](6,6)}
\psset{fillstyle=solid,dotscale=2,RandomFaces=true,Corners=true}
\randomi=123456 \PstDie[fillcolor=black!10](1,3,0)
\randomi=271354 \PstDie[fillcolor=black!20,viewpoint=1 0.3 1,
                        CornersColor=black!80](0.3,1.5,0)
\psset{linecolor=white}
\randomi=93850516 \PstDie[fillcolor=black!60,viewpoint=1 -0.5 1,
                          CornersColor=black!20](3,3,0)
\randomi=8873165  \PstDie[fillcolor=black!40,viewpoint=1 -0.2 1,
                          CornersColor=black!10](2,5,0)
\end{document}
</pre></body></html>