noise 0.8.1

Procedural noise generation library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! An example of generating constant valued noise

extern crate noise;

use noise::{utils::*, Constant};

fn main() {
    PlaneMapBuilder::<_, 2>::new(Constant::new(-1.0))
        .build()
        .write_to_file("constant_-1.png");
    PlaneMapBuilder::<_, 2>::new(Constant::new(0.0))
        .build()
        .write_to_file("constant_0.png");
    PlaneMapBuilder::<_, 2>::new(Constant::new(1.0))
        .build()
        .write_to_file("constant_1.png");
}