Struct tcod::noise::NoiseInitializer
[−]
[src]
pub struct NoiseInitializer { /* fields omitted */ }
An initializer is used to customize creation of a Noise
object.
Methods
impl NoiseInitializer
[src]
fn hurst(&mut self, hurst: f32) -> &mut Self
Sets the hurst value of the noise generator.
fn lacunarity(&mut self, lacunarity: f32) -> &mut Self
Sets the lacunarity value of the noise generator.
fn noise_type(&mut self, noise_type: NoiseType) -> &mut Self
Sets the noise type the generator produces.
fn random(&mut self, random: Rng) -> &mut Self
Sets a custom random number generator. Use tcod::random::Rng instance.
fn init(&self) -> Noise
Finalizes creation and returns a new Noise
object.