Spirographs are implemented in the module Spirograph.py. You will also need
Coming soon???
There are 14 samples which demonstrate the flexibility and scope of the spirograph modude. Some of the later ones generate very large bitmaps which are best appreciated if they are sent to a printer. The earlier ones can be viewed on the screen. Examples can be created by calling the 'example' function in the module, eg. Spirograph.example(2) will generate the second example. All examples are saved to bitmap files with the general name 'spirograph00001.bmp'. The examples are:
The following images give a feel for what the examples are like but don't do justice to the full size versions.
Pattern 11 is generated using 4 wheels rotating around each other with varying speeds. The speeds have been chosen to give the pattern 8-fold symmetry. The 12th pattern is generated by superimposing a number of versions of pattern 11. The individual patterns only differ by the starting phase of one of the wheels. In patterns with more than 2 wheels the relative phases of the wheels can make a difference, this effect is missing in the standard two wheel spirograph. This animation (generated from the bitmaps produced by example 101) shows how varying the phase of the 2nd wheel in pattern 11 changes the shape of the whole.
Here are a couple of images generated by passing the output from the examples above through Paintshop Pro's various images manipulations.