[pstricks] multido and psclip
mathias legrand
legrand.mathias at gmail.com
Sat Sep 11 12:45:55 CEST 2010
> \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}
yes, it looks like something like that. But I dont understand why if you
replace \psframe[cornersize=absolute,linestyle=none] by
\psframe*[cornersize=absolute,linestyle=none], you get only black
squares and a single partial red circle ?
More information about the PSTricks
mailing list