Skip to content

IndexError #33

Description

@zhengxyz123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions