Thanks @napa182 and Wader I didn't see that before :)
This is a code I found here. I can't remember the original creator, but I made some changes. It gives a ROYGBIV pattern and turning the background on gives it a black background, to see the colors better. I have now fixed the color problem :)
How the heck does this work?