class Noise::Perlin
- Noise::Perlin
- Reference
- Object
Defined in:
noise/perlin.crConstant Summary
-
GRADIENTS =
[[1, 1, 0], [-1, 1, 0], [1, -1, 0], [-1, -1, 0], [1, 0, 1], [-1, 0, 1], [1, 0, -1], [-1, 0, -1], [0, 1, 1], [0, -1, 1], [0, 1, -1], [0, -1, -1]]
-
The gradients are the midpoints of the vertices of a cube.
-
SKEW_FACTOR =
0.5 * ((Math.sqrt(3.0)) - 1.0)
-
Skew the input space to determine which simplex cell we're in
-
UNSKEW_FACTOR =
(3.0 - (Math.sqrt(3.0))) / 6.0
Constructors
Instance Method Summary
- #fractal(octaves : Int, persistence : Float, scale : Float, x : Float, y : Float) : Float
- #noise(x : Float, y : Float) : Float
- #scaled_noise(loBound : Float, hiBound : Float, x : Float, y : Float) : Float
- #scaled_octave_noise(octaves : Float, persistence : Float, scale : Float, loBound : Float, hiBound : Float, x : Float, y : Float) : Float
Constructor Detail
Instance Method Detail
def fractal(octaves : Int, persistence : Float, scale : Float, x : Float, y : Float) : Float
#
def scaled_octave_noise(octaves : Float, persistence : Float, scale : Float, loBound : Float, hiBound : Float, x : Float, y : Float) : Float
#