I am busy looking to create star paths in my app, and I was wondering how to determine the ratio between the inner radius and the outer radius of the points of a star so that the star has "straight" lines across.
I have a function that takes 3 parameters:
pointCount = 5
outerRadius = 100
innerRadius = 50
Basically it goes around the circle and alternates between a point and an inside so the star looks like this:

As you can see, the star is "bulging". What I am really trying to get is this star:
![]()
There should be some mathematical formula that can take the "outer" radius and the number of points to calculate the "inner" radius?
innerRadius = some_operation (pointCount, outerRadius)
