Epicycloids

Click the display area to cycle between the four available modes.

I got the idea for this visualization in part by reading this Wolfram MathWold page on Epicycloids.