[pstricks] multido and psclip
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Fri Sep 10 20:40:20 CEST 2010
Am 10.09.2010 20:08, schrieb mathias legrand:
> 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)}}%
you are filling the frames, then everything behind it
cannot be seen. However, I do not really understand, what
you want to do. maybe something like this:
\documentclass{article}
\usepackage{multido}
\usepackage{pstricks-add}
\begin{document}
\psset{unit=0.75}
\def\xMax{10}
\def\yMax{6}
\begin{pspicture}(-1,-5)(\xMax,\yMax)%
\multido{\i=0+1}{5}{%
\multido{\I=0+1}{5}{%
\multido{\ii=0+1}{4}{%
\multido{\II=0+1}{4}{%
\psclip{\psframe[cornersize=absolute,linestyle=none]%
(!\i\space 2 mul 0.72 sub \I\space 2 mul 2.8 sub 0.72 sub)%
(!\i\space 2 mul 0.72 add \I\space 2 mul 2.8 sub 0.72 add)}%
\pscircle*[linecolor=red](!\ii\space 2.5 mul \II\space 2.5 mul
2.8 sub){1}%
\endpsclip
}%
}%
}%
}%
\end{pspicture}
\end{document}
Herebrt
More information about the PSTricks
mailing list