| Crates.io | image-noise |
| lib.rs | image-noise |
| version | 0.1.0 |
| created_at | 2021-07-11 02:03:34.757391+00 |
| updated_at | 2021-07-11 02:03:34.757391+00 |
| description | Creates a simple perlin noise texture in Rust |
| homepage | |
| repository | https://github.com/grantshandy/image-noise |
| max_upload_size | |
| id | 421265 |
| size | 333,285 |
Creates a simple perlin noise texture in Rust.
image-noise = "0.1.0"
Really, this is a simple wrapper over txture, making it easier to be used with the image crate.
let image = image_noise::noise_image(1000, 10);
let mut file = File::create("image.png").unwrap();
let mut bytes: Vec<u8> = Vec::new();
image
.write_to(&mut bytes, image::ImageOutputFormat::Png)
.expect("Can write to png");
file.write_all(&bytes).unwrap();
