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

engusmaze/noilib-simple-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple noise library written in rust

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages