Producing 2D perlin noise with numpy
问题 I'm trying to produce 2D perlin noise using numpy, but instead of something smooth I get this : my broken perlin noise, with ugly squares everywhere For sure, I'm mixing up my dimensions somewhere, probably when I combine the four gradients ... But I can't find it and my brain is melting right now. Anyone can help me pinpoint the problem ? Anyway, here is the code: %matplotlib inline import numpy as np import matplotlib.pyplot as plt def perlin(x,y,seed=0): # permutation table np.random.seed