Start with the following program:
View the simulator console. As light intensity is varied using the upper-left control, the color changes:
Eventually all 5 possible color values can be seen: 16711680 = 0xff0000 = red; 65280 = 0x00ff00 = green; 255 = 0x0000ff = blue; 16776960 = 0xffff00 = yellow; 16777215 = 0xffffff = white. But the color value seems to change randomly.
Is the color value really random, or is there some way to set it to each of the 5 possible values?