Hypotrochoid Curve with Additional Scrollbars

Posted by ArtDeveloper on November 30, 2024

Hypotrochoid Curve with Additional Scrollbars

240
58
150
1
8
1
2
3
4
5
The curve is drawn using this formua:   R, r, d, f1 and f2 correspond to the values in the formula below:

            x = (R - r) * Math.cos(f1*t) * (1 + Math.cos(f2*t)) + d * Math.cos(((R - r) / r) * t);
            y = (R - r) * Math.sin(f1*t) * (1 + Math.cos(f2*t)) - d * Math.sin(((R - r) / r) * t);