[pstricks] multido and psclip

mathias legrand legrand.mathias at gmail.com
Fri Sep 10 20:08:49 CEST 2010


Hi all,

in what's below, why only the last psclip (or a few of the last ones)
is shown ?

Thanks

\documentclass{article}
\usepackage[margin=0in]{geometry}
\usepackage{multido}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}[h]
\centering%
\psset{unit=0.75}%
\def\xMax{12}%
\def\yMax{6}%
\begin{pspicture}(0,-\yMax)(\xMax,\yMax)%
\multido{\i=0+1}{5}{%
   \multido{\I=0+1}{5}{%
     \multido{\ii=0+1}{4}{%
       \multido{\II=0+1}{4}{%
        \psclip{%
        \rput[cc](!\i\space 2 mul \I\space 2 mul 28 sub){% 
\psframe[cornersize=absolute,linestyle=none,fillstyle=solid,fillcolor=white](-0.72,-0.72)(0.72,0.72)}}%
        \rput[cc](!\ii\space 2.5 mul \II\space 2.5 mul 28 sub){%
        \pscircle[linestyle=none,fillstyle=solid,fillcolor=red](0,0){1}}%
        \endpsclip
         }%
       }%
     }%
}%
\end{pspicture}
\end{figure}
\end{document}



More information about the PSTricks mailing list