noice 0.7.1

Fork of noise-rs, a procedural noise generation library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! An example of generating constant valued noise
use noice::{utils::*, Constant};

fn main() {
    PlaneMapBuilder::new(&Constant::new(-1.0))
        .build()
        .write_to_file("constant_-1.png");
    PlaneMapBuilder::new(&Constant::new(0.0))
        .build()
        .write_to_file("constant_0.png");
    PlaneMapBuilder::new(&Constant::new(1.0))
        .build()
        .write_to_file("constant_1.png");
}