Click the green flag to start, Then type in the number of sides you want your polygon to have in the answer block. Adjust your pen thickness. Tom will draw it for you. Wait for some time before you can insert a new number of sides.
Credits - My friend *****(he wishes to keep his name private.) and scratcher KarateBuliderBoy. Some code is from both of them so a huge shutout to them please. Updates - V 1.1 - Added thickness of brush.