Click the green flag to create a color spectrum.
Changing pen color in Scratch changes the Hue. Values for the hue range from 0 - 100. Starting from x = -200 and looping to x = 200 covers a range of 400 pixels. If we add 1 to the x position each time and we change the color by 1 each time then we will loop through the spectrum 4 times. If we increment the x position by 8 each time we loop then we will run through 50 iterations. This means that to cover the spectrum from Red to Red we will need to increment the pen color by 2 each time. This is probably more for the benefit of my (lack of) memory than it is for anyone else... But someone may appreciate it. =)