WordSmith, an online version of Spirograph, and had some fun playing around with it. If you've hit a wall or just want to have some fun, scroll down to the bottom and make some art.
Below is information about what a Spirograph is; in case you wanted to know more about how a it works. (Who knew a kids toy had so much math?)
What is a Spirograph?
A Spirograph is a curve formed by rolling a circle inside or outside of another circle. The pen is placed at any point on the rolling circle. If the radius of fixed circle is R, the radius of moving circle is r, and the offset of the pen point in the moving circle is O, then the equations of the resulting curve is defined by:
x = (R+r)*cos(t) - O*cos(((R+r)/r)*t)
y = (R+r)*sin(t) - O*sin(((R+r)/r)*t)
(moving circle outside the fixed circle)
x = (R-r)*cos(t) + O*cos(((R-r)/r)*t)
y = (R-r)*sin(t) - O*sin(((R-r)/r)*t)
(moving circle inside the fixed circle)
Here is how you can use the controls in this Spirograph applet:
- The first three scroll bars in the control panel let you change R, r and O respectively.
- You can use the next three scroll bars to change the color of the drawing. These scroll bars change the red, green and blue values of the color (in the range 0-255) respectively.
- The last scroll bar lets you choose the number of iterations for the Spirograph. Move it to beginning and then slowly increase it to see how many iterations it takes to complete the spirograph.
Thanks to Anu Garg for permission to use this applet