2 releases

0.5.1 Jul 12, 2022
0.5.0 Jul 12, 2022

#22 in #perlin-noise

Apache-2.0/MIT

12KB
110 lines

Noilib simple

This is just a simple implementation of perlin noise and value noise made in rust.

A simple example
use noilib_simple::NoiseGenerator;

fn main() {
    let seed = 123;
    let noise = NoiseGenerator::new(seed); // Initializing noise generator

    let x = 1.0;
    let y = 5.5;
    println!("{}", noise.perlin(x, y)); // Print the noise value at x and y coordinates
}

Some examples of noises this library is able to produce

Perlin noise

Perlin noise

Value noise

Value noise

Perlin noise with 4 octaves

Perlin noise with 4 octaves

Value noise with 4 octaves

Value noise with 4 octaves

No runtime deps