So this code is to plot two concentric circles with a polygon inscribed in one and circumscribed about the other:
Manipulate[
Graphics[{Red, Circle[{0, 0}, Cos[Pi/n]], Blue, Circle[{0, 0}, 1],
Green, Line[{Cos[2 Pi #/n], Sin[2 Pi #/n]} & /@ Range[0, n]]}],
{n, 3, 30, 1}]
What can I do to make three additional changes : control the polygon inside in a way that it can be closed or simply lines that end, not necessarily periodic .
To make myself more clear I would want to deal with it like a billiard ball that might make a closed trajectory or a trajectory that ends Any thoughts?