\DocumentMetadata{}
\documentclass{standalone}
\usepackage{geometry}
\geometry{paperwidth=20cm,paperheight=16cm,margin=1cm}
\usepackage{pst-spirograph,animate}

\begin{document}
\begin{animateinline}[
  begin={\begin{pspicture}(-10,-5)(7,8)},
  end={\end{pspicture}},
  palindrome,controls,
%  autoplay
]{5}
\multiframe{181}{iA=0+2}{%
  \psSpirograph[RubberBand,Z1=40,Z2=10,m=0.2,viewpoint=-1 -5 5,arrowinset=0,arrowsize=0.2,wheelrotation=\iA,linewidth=0.025,color1=yellow,color2=cyan]}
\end{animateinline}

\end{document}
