here’s an interesting link for a spirograph type thing that I think is pertinent http://www.subblue.com/projects/guilloche