This is generalization of: (x=3/2cos(t) + 1/3sin(125t) y=3/2sin(t)+1/3cos(251t))

x=R1*(r1/r2*Math.cos(t)+1/3*Math.sin(d1*t));
y=R1*(r1/r2*Math.sin(t)+1/3*Math.cos(d2*t));

140
3
2
125
251