Run the game in turbo mode (hold shift and click the green flag at the top) for the best performance. Enter the number of sides and the iterations, and watch the pattern being drawn. then press any key once the pattern is finished drawing to draw another.
I simplified the code and made some of the numbers nicer, as well as adding the ability to draw multiple shapes. Special thanks to Magotan for the original idea and project.