include_rgba

Crates.ioinclude_rgba
lib.rsinclude_rgba
version0.1.0
sourcesrc
created_at2020-09-07 15:20:50.792109
updated_at2020-09-07 15:20:50.792109
descriptionA Rust procedural macro for convenient including of images or textures as RGBA pixel arrays
homepagehttps://github.com/PonasKovas/include_rgba
repositoryhttps://github.com/PonasKovas/include_rgba
max_upload_size
id285781
size13,970
Mykolas Peteraitis (PonasKovas)

documentation

README

include_rgba

A Rust procedural macro for convenient including of images, textures as RGBA pixel array.

Usage

// 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")
Commit count: 12

cargo fmt