\documentclass[border=5mm]{standalone} \usepackage{animate} \usepackage{pst-spirograph} \begin{document} \begin{animateinline}[ width=0.9\linewidth, begin={\begin{pspicture}(-4.5,-4.5)(4.5,4.5)}, end={\end{pspicture}}, palindrome,controls, % autoplay ]{5} \multiframe{72}{rA=0.001+20.000}{% \psSpirograph[thetamax=\rA,Z1=20,Z2=30,m=0.1,ap=10,curvewidth=1.5pt,inner=false, linewidth=0.025,fillstyle=solid,polarangle=\rA,holenumber=4,opacity=0.5](0,0)} \end{animateinline} \end{document}