This is the locus of a fixed point in a circle rolling inside another circle. Sometime ago, there was a popular toy called "Spirograph" which did this drawing.