summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-spirograph/animation/anim7.tex
blob: b99a5a0ad8a059f3e305e1467b1f238ad0498f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\documentclass[border=5mm]{standalone}
\usepackage{animate}
\usepackage{pst-spirograph}
\addtopsstyle{gridstyle}{gridlabels=0pt}

\begin{document}

\begin{animateinline}[
  width=0.9\linewidth,
  begin={\begin{pspicture}[showgrid](-7,-7)(7,7)\psframe*[linecolor=yellow,opacity=0.4](-7,-7)(7,7)},
  end={\end{pspicture}},
  palindrome,controls,
%  autoplay
]{5}
\multiframe{180}{iA=0+6}{%
  \psSpirograph[thetamax=\iA,Z1=36,Z2=24,m=0.15,ap=20,curvecolor={[rgb]{0.875 0 0.5}},inner=false,
  curvewidth=1.1pt,linewidth=0.025,fillstyle=solid,polarangle=\iA,holenumber=0,opacity=0.5](0,0)}
\end{animateinline}

\end{document}