[pstricks] Arrays of stars and other objects
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sat Mar 7 18:15:00 CET 2009
David Arnold schrieb:
> And, are there other "canned" images in pstricks, such as dice, and
> are they listed anywhere?
\documentclass{article}
\usepackage{pst-poly,pstricks-add}
\def\putBox(#1,#2){\rput(#1,#2){\rnode{p#1#2}{%
\PstPolygon[unit=0.3,PolyIntermediatePoint=0.38]}}}
\begin{document}
\begin{pspicture}(1,0.5)(4,2.5)
\multido{\iRow=1+1}{2}{%
\multido{\iCol=1+1}{4}{%
\ifnum\iRow=1 % lowest row
\ifnum\iCol=4 % last column
\else\putBox(\iCol,\iRow)\fi
\else\putBox(\iCol,\iRow)\fi}}
\ncbox[linearc=0.35,nodesep=0.2,linecolor=blue]{p11}{p31}
\ncbox[linearc=0.35,nodesep=0.2,linecolor=blue]{p12}{p32}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list