noilib-simple

Crates.ionoilib-simple
lib.rsnoilib-simple
version0.5.1
sourcesrc
created_at2022-07-12 18:21:44.171857
updated_at2022-07-12 18:32:27.280405
descriptionA simple noise library
homepagehttps://github.com/engusmaze/noilib-simple-rs
repositoryhttps://github.com/engusmaze/noilib-simple-rs
max_upload_size
id624571
size38,171
EngusMaze (engusmaze)

documentation

README

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

Commit count: 8

cargo fmt