PerlinNoise2
from panda3d.core import PerlinNoise2
- class PerlinNoise2
Bases:
Bases:
PerlinNoise
This class provides an implementation of Perlin noise for 2 variables. This code is loosely based on the reference implementation at https://mrl.nyu.edu/~perlin/noise/ .
Inheritance diagram
- __call__(value: LVecBase2d) float
- __call__(value: LVecBase2f) float
- __init__()
Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed.
- __init__(copy: PerlinNoise2)
Makes an exact copy of the existing
PerlinNoise
object, including its random seed.
- __init__(sx: float, sy: float, table_size: int, seed: int)
Randomizes the tables to make a unique noise function.
If seed is nonzero, it is used to define the tables; if it is zero a random seed is generated.
- assign(copy: PerlinNoise2) PerlinNoise2
- noise(value: LVecBase2d) float
Returns the noise function of the three inputs.
- noise(value: LVecBase2f) float
Returns the noise function of the three inputs.
- setScale(scale: LVecBase2d)
Changes the scale (frequency) of the noise.
- setScale(scale: LVecBase2f)
Changes the scale (frequency) of the noise.
- setScale(scale: float)
Changes the scale (frequency) of the noise.