pub struct Runner { /* private fields */ }
Expand description

A runner to run the algorithm.

Implementations

Constuct a new Runner.

Run the Diamond-square algorithm.

Set the depth. The value of each pixel will be within 0~depth. Default: 2000.0.

Set the height of the map. Must be larger than 1. Default: 129.

Set the roughness. Default: 1.0.

Set the width of the map. Must be larger than 1. Default: 129.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.