Commits

Frederic De Groef committed f808ead

self.perm -> p

  • Participants
  • Parent commits 3e1e21b

Comments (0)

Files changed (1)

File src/noise.py

 def get_gradient2D(i, j):
     I, J = i & 0xff , j & 0xff
   
-    idx = p[(I + self.perm[J])&0xff] % len(gradients)
+    idx = p[(I + p[J])&0xff] % len(gradients)
     return gradients2D[idx]