Click the flag, then enter how many sides you want, then you get the shape with the requested amount of sides. Made using really simple math, and from an accident when I was trying to make a circle. Also don't try Infinity, because it would just move 0 steps and turn 0 degrees forever. To get a circle, do 360 (and yes I know, a circle does not have 360 sides)
Credit is not needed, but appreciated. For every polygon that has 3 or more sides, it uses really simple math. All it does is divides 360 by the number of sides, and moves and turns by that amount, the number of sides times. For example, with a shape with 4 sides, 360/4=90, so it would turn 90 degrees, then move 90 steps, then turn 90 degrees and move 90 steps, until it does that 4 times. For a triangle (with 3 sides), 360/3=120, so it turns 120 degrees, moves 120 steps and so on. But with the semicircle (with 2 sides), it is a bit more complicated, because if you do the formula used with the other shapes, you just get a line because it turns and moves 180 degrees (or the opposite direction), then goes back, making a long, unwanted line. So instead, it has makes a line that is 90 units long, then turns turns 1 degree, and moves 1 step 180 times for the circle part.