Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError #33

Open
zhengxyz123 opened this issue Aug 13, 2020 · 0 comments
Open

IndexError #33

zhengxyz123 opened this issue Aug 13, 2020 · 0 comments

Comments

@zhengxyz123
Copy link

Today I try terrain generation with different seeds. so I write:

from noise.perlin import SimplexNoise
noise2 = SimplexNoise(hash('a')).noise2
print(noise2(0, 0))

But some error raise:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/noise/perlin.py", line 171, in noise2
    gi0 = perm[ii + perm[jj]] % 12
IndexError: tuple index out of range

I use noise 1.2.2, python 3.8.5, Termux in Android 7.1.1, Linux version 3.18.31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant