spirographs/README.md
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

892 B

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.