| Crates.io | include_rgba |
| lib.rs | include_rgba |
| version | 0.1.0 |
| created_at | 2020-09-07 15:20:50.792109+00 |
| updated_at | 2020-09-07 15:20:50.792109+00 |
| description | A Rust procedural macro for convenient including of images or textures as RGBA pixel arrays |
| homepage | https://github.com/PonasKovas/include_rgba |
| repository | https://github.com/PonasKovas/include_rgba |
| max_upload_size | |
| id | 285781 |
| size | 13,970 |
A Rust procedural macro for convenient including of images, textures as RGBA pixel array.
// The type is [u8; X] where X is the number of pixels * 4
// each element represents a channel value,
// so 4 elements make up a pixel
let rgba_data = include_rgba!("path/to/the/image.png")