Javascript Hypotrochoid

Exterior Radius R:
Interior Radius r:
Drawing Distance d:
Revolutions:
Color:

Some nice ones to try:

R r d Rev
90 65 40 13
160 30 30 3.1
160 30 40 3.1

All about Hypotrochoids