Debian Codegraph @

texmf-dist/doc/generic/pst-nutation/animations/pst-nutation-doc-anim5.tex

raw
1 %\DocumentMetadata{lang=en}
2 %% $Id: pst-nutation-doc-anim5.tex 1198 2025-12-20 13:27:56Z herbert $
3 \documentclass[pstricks,border=5mm]{standalone}
4 \usepackage{animate}
5 \usepackage{pst-tools,pst-nutation}
6
7 \newif\ifAdobe \Adobefalse
8
9 \begin{document}
10
11 \ifAdobe
12 \begin{animateinline}[controls,loop,
13 begin={\begin{pspicture}[showgrid=](-5,-5)(5,5)},
14 end={\end{pspicture}}]{10}% 10 images/s
15 \multiframe{41}{n=0.0+0.5}{%
16 \rput(0,5){Rotation}
17 \psset{viewpoint=500 0 40 rtp2xyz,Decran=500}
18 \psNutation[omega=\n,dtheta=0,theta=-40,frequency=0,linecolor={[rgb]{0 0.5 0}}]
19 \end{animateinline}
20
21 \else
22 \multido{\n=0.0+0.5}{41}{%
23 \begin{pspicture}(-5,-5)(5,5)
24 \rput(0,5){Rotation}
25 \psset{viewpoint=1000 0 40 rtp2xyz,Decran=1000}
26 \psNutation[omega=\n,dtheta=0,theta=-40,frequency=0,linecolor={[rgb]{0 0.5 0}}]
27 \end{pspicture}%
28 }
29 \fi
30 \end{document}