[pstricks] multido+rotation

Doris Wagner doris.wagner at mac.com
Sat Jan 13 19:00:53 CET 2007


thank you paul...I succeded to understand your code...

I only have two questions:
1) in the line of \newcommand{\rotat...}, I guess (!0 0) is the center 
of the rotation? what does the exclamation sign mean? why didn't you 
write (0,0) instead?
2) why do you use the command \SpecialCoor?



> \documentclass{article}
> \usepackage{pstricks-add}
> \usepackage{graphicx}
> \usepackage{multido}
>
> \newcommand{\rotatedtextatorigin}[2]{\rput[l]{#2}(!0 0){#1}}
> \pagestyle{empty}
>
> \def\eye{
> \begin{psclip}{\psellipse(0,0)(0.8,1.5)}
> \pscircle*[linecolor=blue](0,-1){1}
> \end{psclip}
> \pspolygon*(-0.4,1.5)(0.7,1.8)(0.2,2.2)(-0.5,1.6)
> }
> \begin{document}
>
> \psset{unit=1cm}
> \begin{pspicture}(-5,-5)(5,5)
> \psaxes[linewidth=1pt,labels=all,%
>      ticksize=-3pt 0]{->}(0,0)(-5,-5)(5,5)
> \SpecialCoor%
> \multido{\n=0+30}{12}{\rotatedtextatorigin{\hspace{1em}Tobias
> N$\ddot{\rm{a}}$hring's eyes rotated:
> \scalebox{-0.1}[0.1]{\eye}\hspace{0.5em}\scalebox{0.1}{\eye}}{\n}}
> \end{pspicture}
>
> \end{document}




More information about the PSTricks mailing list