Enter the number of sides you want the shape to have. The more sides, the better the rainbow effect. However, the more sides to the shape, the longer it takes to draw. Try 1000.
This was done at school, so thanks to my teacher for the assignment to make something to draw regular polygons! (Rainbow was my idea because I was bored.) If the color doesn't change enough for you, try https://scratch.mit.edu/projects/197434562/