This is just a simple drawing and rotating of a polygon. The Number of Sides must be in-between 2 and 5000.
I got the idea to make this from https://scratch.mit.edu/projects/91636891