Skip to content

problem with negatives coordinates #40

Description

@jsb72

hello

thanks for your library

i'm facing a problem when i try to use negatives coordinates

        shape = (0,0)
        scale = 20
        octaves = 3
        lacunarity = 1.0
        persistence = 1.0

        for y in range (-100,shape[1],1):

            for x in range(-100,shape[0],1):

                value = noise.pnoise2(x/scale,y/scale,octaves=octaves,persistence=persistence,lacunarity=lacunarity,repeatx=shape[0],repeaty=shape[1],base=0)

the noise become simple and repeatful

negatives coord :
https://image.noelshack.com/fichiers/2025/06/6/1738985233-negativ.png

instead of, positives coord :
https://image.noelshack.com/fichiers/2025/06/6/1738985233-positiv.png

is there a good way to use negative coord ?

i guess it is because repeatx=shape[0],repeaty=shape[1] is equivalent to repeatx=0,repeaty=0 in this case
and i feel it is the problem ? Not the only one ?

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