Seth M. answered 02/07/20
Patient Tutor with Real-World JavaScript and TypeScript Experience
You are on the right track. :)
Let's just modify that function a little:
To find the x value at any step we need the radius multiplied by the cosine of the angle in radians. The angle in radians is 2pi x the percentage of the way around the circle.
Same for y, but use sine.