A popular drawing toy in the 1970s consisted of a set of plastic cogs and toothed wheels. A cog would be placed inside a wheel so that its teeth engaged on those on the inside rim of the wheel. It would then be rolled around the rim while a pen, inserted through a hole in the cog, traced out a pattern.
The effect can be recreated by a simple Java program.
Want to know more about drawing SpiroGraphics?
The java code for the pattern above is Pattern1.java.