Spirograph patterns are plotted by a point in a "circular" wheel moving along a ring.
Is it possible to edit the Spirograph code from the answer to this question to use a non-circular inner wheel (for example an elliptical wheel) instead of the inner circular wheel). The next photo shows some of the non-cirular inner wheels used in the commercial Spirograph toy.
The left inner wheel produces these drawings
The following is the basic Spirograph code I am referring to from this question.
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\usepackage{tikz}
\begin{document}
\tikzset{pics/spiro/.style={code={
\tikzset{spiro/.cd,#1}
\def\pv##1{\pgfkeysvalueof{/tikz/spiro/##1}}
\draw[trig format=rad,pic actions]
plot[variable=\t,domain=0:2*pi*\pv{nRotations}, samples=90*\pv{nRotations}+1, smooth cycle]
(
{(\pv{R}+\pv{r})*cos(\t)+\pv{p}*cos((\pv{R}+\pv{r})*\t/\pv{r})},
{(\pv{R}+\pv{r})*sin(\t)+\pv{p}*sin((\pv{R}+\pv{r})*\t/\pv{r})}
);
}},
spiro/.cd,R/.initial=6,r/.initial=-1.5,p/.initial=1,nRotations/.initial=1}
\begin{frame}[t]
\frametitle{}
\begin{center}
\begin{tikzpicture}[line width=.4mm]
\pic[draw,blue,fill=blue!40,scale=.7]{spiro={R=6,r=-1.5,p=1.52}};
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}
which produces this simple figure




