Simple .ppm loader written in Rust.
This is more of a toy project, I have written, to be able to easy reuse it for some of my experiments with 2d graphhics in Rust.
tinyppm
to your Cargo.toml
get_image_data
:```rust extern crate tinyppm;
// some code
fn myfunction(filename: String) -> { let (width, height, image) = tinyppm:ppmloader::getimagedata(filename); // rest of the code }
// some more code
```
This code is released under the MIT license.