A Python GUI app for generating epitrochoids and hypotrochoid parametric equations. This is what the Spirographs toy does using gears.
Find a file
A.M. Rowsell d4ebbb6d06 Updated README.md
Added screenshot of v1, fixed image links to point to new location.
2021-06-28 03:53:48 +00:00
img Embedded the matplotlib in a GtkViewport. 2021-06-27 15:40:30 -04:00
.gitignore Embedded the matplotlib in a GtkViewport. 2021-06-27 15:40:30 -04:00
LICENSE Adding gitignore and Mozilla Public License v2.0 2021-06-27 13:58:46 -04:00
README.md Updated README.md 2021-06-28 03:53:48 +00:00
spirographs.glade Step size refuses to change. Small updates to plot size. 2021-06-27 17:29:33 -04:00
spirographs.py Step size refuses to change. Small updates to plot size. 2021-06-27 17:29:33 -04:00

Spirographs!

Screenshot of v1

Everyone who grew up playing with this toy remembers it fondly. Very cool shapes and patterns. Recently, I was wondering if there was a mathematical formula describing the shapes created by Spriographs, and of course there is!

They're actually quite simple. The shapes are called hypotrochoids and epitrochoids. To calculate each point, you simple use the following parametrized equations, plugging in 0 to 2π for θ:

And that's it! To play around with the different patterns, this Python GTK3 app was created so you could use sliders to change the parameters and see how they affect the output.