\DocumentMetadata{}
\errorcontextlines=100
\documentclass{article}
\usepackage{geometry}
\geometry{paperwidth=17cm,paperheight=10.5cm,margin=1cm}
\pagestyle{empty}
\usepackage{pst-spirograph,animate,pst-calculate}
\begin{document}

\noindent
\begin{animateinline}[
  begin={\begin{pspicture}(-6,-3)(9,5.5)\psframe*[linecolor=yellow!40](-6,-3)(9,5.5)},
  end={\end{pspicture}},
  palindrome,controls,
%  autoplay
]{5}
  \multiframe{61}{iA=0+2}{%                            2 -5 3
    \psSpirograph[RubberBand,Z1=20,Z2=40,m=0.2,viewpoint=2 -5 3,arrowinset=0,arrowsize=0.2,
      wheelrotation=\iA, opacity=0.5,
	  linewidth=0.025,color1=yellow,color2=blue!50]}
\end{animateinline}


\end{document}
