Jonathan. Frech’s WebBlog

Polygons (#6)

Jonathan Frech

Using my getCirclePos() function, I thought of not on­ly creating a circle. Dividing 360° by 𝑛, you get 𝑥°. Now 𝑥° is a 𝑛-th of a circle. If I connect 𝑛 points with each oth­er, always adding 𝑛° and starting from , I get a 𝑛-gon. “Polygons” does exactly this. The minimum 𝑛-gon-count is 3, the maximum 1000.

Usage

Source code: polygons.py