Epicycloids and Hypocycloids
Positive frequencies let the circle role outside

The curves are defined by these equations:
c(t) = [ RR * cos(t), RR * sin(t) ] +
[ sticklength*cos(frequency*t),
  sticklength*sin(frequency*t)];
The curve and ists tangents are obtained
from a rolling construction.