Expand description

Using diamond-square algorithm to generate heightmaps which stored in a 2D-array.

Usage

use ds_heightmap::Runner;

fn main() {
    let mut runner = Runner::new();
    let output = runner.ds();

    println!("data: {:?}", output.data);
    println!("max: {}", output.max);
    println!("min: {}", output.min);
}

Structs

The output of the algorithm.

A runner to run the algorithm.