Hey there, i recently wrote a perlin noise class following this tutorial - http://freespace.virgin.net/hugo.elias/models/m_perlin.htm
http://pastebin.com/fnjCpTrc – Here is my code. However, I noticed that it doesn’t produce the colours I want, and instead gives me this --> https://dl.dropbox.com/u/13907487/perlin_noise.png
Which means I obviously did something wrong. The thing is, I don’t know what I did wrong. I’m guessing it’s at image.setRGB(x,y, (int)generatePerlinNoise(x,y)) but i’m not sure how to correct it show it shows up like proper perlin noise.