Mathematics of Spirograph

Mike Markowski, mike.ab3ap@gmail.com

Polar, sinusoidally based curves are attractive. If you enjoy ones similar to Spirograph, and who doesn't? :-), I wrote two versions of the same program. One runs on your HP Prime calculator:

Place spiro.ppl into the Programs folder on the calculator.

I also wrote a command line version, spiro.py, to create the curves at the top of the page. The rightmost is called a Maurer rose. The curves above are created by running:

spiro.py -t h -R 17 -r 10 -d 9 -w 300 -c blue   -f blue.png
spiro.py -t h -R 29 -r 17 -d 7 -w 300 -c red    -f red.png
spiro.py -t h -R 13 -r 11 -d 5 -w 300 -c green  -f green.png
spiro.py -t h -R 13 -r  4 -d 2 -w 300 -c orange -f orange.png
spiro.py -t m -p 5 -s 97 -f rose.png

The cryptic looking arguments mean: