#[include_image]
Expand description
Utility macro to construct a const Image
at compile time from a image file.
Every image formats supported by the image crate can be used. The image will be automatically be converted to the requested pixelcolor. Current only rgb pixelcolors are supported.
ⓘ
use embedded_sprites::{image::Image, include_image};
use embedded_graphics::pixelcolor::Bgr565;
#[include_image]
const IMAGE: Image<Bgr565> = "img/grass.png";