Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (23 loc) · 834 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 834 Bytes

Archiving due to (too slow)

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