Public Member Functions | |
def | __init__ |
Constructs a new SmoothNoise object. | |
def | generate |
Generates a grid with the smooth noise. | |
Public Attributes | |
uniform_noise | |
width | |
height | |
depth |
Successive calls to generate will use the same underlying grid of uniform noise to sample from.
Definition at line 382 of file perlin_noise.py.
def perlin_noise.SmoothNoise3D.__init__ | ( | self, | ||
width, | ||||
height, | ||||
depth | ||||
) |
Constructs a new SmoothNoise object.
oldNoise | If oldNoise is given, the first row and column of oldNoise's uniform noise grid is copied to this SmoothNoise object's uniform noise grid. This is for making sets of tiles with certain algorithms, such as the Perlin noise algorithm. |
Definition at line 390 of file perlin_noise.py.
def perlin_noise.SmoothNoise3D.generate | ( | self, | ||
k | ||||
) |
Generates a grid with the smooth noise.
k | The sampling distance, usually a power of 2. If k == 1, every point in the uniform noise grid is sampled and the returned grid is equivalent to the uniform noise grid. |
Definition at line 404 of file perlin_noise.py.
Definition at line 395 of file perlin_noise.py.
Definition at line 394 of file perlin_noise.py.
Definition at line 391 of file perlin_noise.py.
Definition at line 393 of file perlin_noise.py.