static PerlinNoise() { repeat = 0; p = new int[512]; for (int x = 0; x < 512; x++) { p[x] = permutation[x % 256]; } }