tinyppm

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.

Usage

  1. Add tinyppm to your Cargo.toml
  2. Call 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

```

License

This code is released under the MIT license.