Drawing polygons with a list of numbers

I thought about the idea of drawing a polygon with a list of numbers. But, I am not sure how it could be done. For example, it is not easy to draw a star on Grasshopper compared to Rhino. If I can use the distance from the center point to each point, it could be easy to draw a start shape. Like the image, the atar shape would be drawn with a series of numbers (10,20,10,20,10,20 or just 10,20) using ArrayPolar. Once it works, the definition could be used to draw different shapes, like the image. Do you think it is doable and worth trying?

I appreciate any help or advice. Thank you!

polygon-star.gh (8.9 KB)

1 Like

This is great! Thank you so much!