PerlinNoise2¶
-
class PerlinNoise2¶
Bases:
PerlinNoiseThis 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
digraph inheritance39e980a658 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PerlinNoise" [URL="acron.core.PerlinNoise.html#acron.core.PerlinNoise",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "PerlinNoise" [arrowsize=0.75,style=""]; "PerlinNoise2" [URL="acron.core.PerlinNoise2.html#acron.core.PerlinNoise2",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "PerlinNoise" -> "PerlinNoise2" [arrowsize=0.75,style=""]; }- PerlinNoise2.__call__()¶
- PerlinNoise2.__init__()¶
Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed.
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.
Makes an exact copy of the existing
PerlinNoiseobject, including its random seed.
- PerlinNoise2.assign()¶
- PerlinNoise2.noise()¶
Returns the noise function of the three inputs.
Returns the noise function of the three inputs.
Returns the noise function of the three inputs.
- PerlinNoise2.set_scale()¶
Changes the scale (frequency) of the noise.
Changes the scale (frequency) of the noise.
Changes the scale (frequency) of the noise.
Changes the scale (frequency) of the noise.