noisy

Crates.ionoisy
lib.rsnoisy
version0.0.3
sourcesrc
created_at2014-12-02 22:04:29.397558
updated_at2015-12-11 23:54:29.779751
descriptionA procedural noise generation library written for Rust.
homepagehttps://github.com/cacteye/noisy
repositoryhttps://github.com/cacteye/noisy
max_upload_size
id443
size42,915
Peter Nguyen (kuhsaft)

documentation

http://www.rust-ci.org/cacteye/noisy/doc/noisy/

README

noisy Build Status

noisy is a procedural noise generation library written for Rust.

Using noisy

All the generators of noisy are grouped in one place: the gen module.

  • You can import all the generators using:
use noisy::gen::*;

The preferred way to use noisy is to import generators explicitly:

extern crate noisy;
use noisy::gen::{NoiseGen, Simplex};

fn main() {
    let simplex = Simplex::new();

    let val = simplex.noise3d(1.0, 2.0, 3.0);
    println!("{}", val);
}

Features

noisy is meant to be a general-purpose purpose procedural noise generation library that includes a variety of generators including:

  • Simplex noise.
  • Perlin noise.
  • Checkerboard.

Compilation

You will need the last rust compiler from the master branch. If you encounter problems, make sure you have the last version before creating an issue.

git clone --recursive git://github.com/cacteye/noisy.git
cd noisy
cargo build

You can build the documentation using:

cargo doc

You can build the included examples using:

cargo test
Commit count: 69

cargo fmt