NoiseGenerator

NoiseGenerator

class

Configurable FastNoise generator

Fields

NameTypeDescription
min number Lower bound of the remapped noise range
max number Upper bound of the remapped noise range

Functions

NoiseGenerator:set_seed(seed)

Set the seed for noise generation

seed integer Seed value

NoiseGenerator:get_noise(x, y, z)

Get the noise value at the given position

x number X coordinate
y number Y coordinate
z number Z coordinate

returns number

NoiseGenerator:set_noise_type(noise_type)

Set the noise type: Simplex, SimplexFractal, Perlin, PerlinFractal, Cellular, Value, ValueFractal, Cubic, CubicFractal, White

noise_type string Noise type

NoiseGenerator:set_frequency(frequency)

Set the frequency for noise generation

frequency number Frequency value

NoiseGenerator:set_fractal_octaves(octaves)

Set the fractal octaves for noise generation

octaves integer Octaves value

NoiseGenerator:set_fractal_gain(gain)

Set the fractal gain for noise generation

gain number Gain value

NoiseGenerator:set_fractal_lacunarity(lacunarity)

Set the fractal lacunarity for noise generation

lacunarity number Lacunarity value

NoiseGenerator:set_fractal_type(fractal_type)

Set the fractal type: Fbm, Ridged or Billow

fractal_type string Fractal type
Standard members (5)

Generated for every class of this kind by the game's codegen, not written for NoiseGenerator.

NoiseGenerator.cast(object) Trying to cast Object into NoiseGenerator
NoiseGenerator.get_class() Return NoiseGenerator class object
NoiseGenerator.find(name) Looks NoiseGenerator up in db, nil when there is none
NoiseGenerator.get(name) Takes NoiseGenerator from db, reports a miss to the log
NoiseGenerator.reg(name) Register a new NoiseGenerator static object
Inherited from Prototype (2)
Inherited from Object (1)

Used by