Issue with Perlin Noise in Java
问题 So I'm trying to generate perlin noise and save it to an image file. I've got the image being saved correctly but the noise doesn't really look like perlin noise. Here's my code: package com.egs.survivalsim.util; import java.awt.Color; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import com.egs.survivalsim.MainComponent; public class Noise { MainComponent main; public double noise(int x,int y){ x = x + y * 57; x = ((x <<