Pressing the spacebar will prompt you with a question to input the amount of sides your polygon should have. After that, it will generate the polygon with that amount of sides. Press A to toggle on/off the animation. Press S to have the show/hide the amount of sides the polygon has on screen.
Another random thing I made for fun.