Function cloth_bumpmap::cloth_bumpmap[][src]

pub fn cloth_bumpmap(
    width: u32,
    height: u32,
    fixed_seed: bool
) -> Option<RgbImage>
Expand description

Generates a bumpmap to be used in clothify.

Based on:

Example

use cloth_bumpmap::cloth_bumpmap;
if let Some(bumpmap) = cloth_bumpmap(1000, 1000, false) {
    bumpmap.save("bumpmap.png").unwrap();
}