Lazy Diamond-Square

The lazydiamondsquare (hereafter LDS) will allow you to use the Diamond-Square algorithm to generate your own landscapes or anything else where it might come in handy.

Example

```rust use lazydiamondsquare as lds; use lds::{Builder, InitBy as By};

fn main() { let mut map = Builder::new(513, 0.15) .seed("qwerty") .initlvl(2) .initby(By::Seed) .build(); let maxcoord = map.maxcoord();

map.gen_area( (0, 0), (max_coord, max_coord));
map.get_img((0, 0), (max_coord, max_coord), Some("view.png"));

} ```

Examples of work

roughness = 0.15, Seed("view1.png") Example 1: roughness = 0.15, Seed("view1.png")

roughness = 0.2, Seed("view2.png") Example 2: roughness = 0.2, Seed("view2.png")

roughness = 0.2, Seed("view3.png"), InitLevel(4) Example 3: roughness = 0.2, Seed("view3.png"), InitLevel(4)

How it works

There's nothing here yet, but I'll add something here in future versions. For now, just take a look at the project documentation and you'll know the essentials. To explain how LDS works, I plan to post an article on Habr, but if there are enough people interested, I will describe how LDS works here too, in English. Or I'll post the article somewhere.

TODO

!!!

I just wanted to let you know that I'm 13 and this is my first serious project, so I'll be only glad for criticism and advice on how to improve my project. All text in this file is translated with the help of a translator, because I don't know English so well yet.

Sources