Macro include_colours

Source
macro_rules! include_colours {
    ($palette:literal) => { ... };
}
Expand description

Includes the colours of an image in the order that they appear as an array of Rgb15.

Useful for passing to a DMA from VRamManager::background_palette_colour_dma

ยงExample

use agb::{include_colours, display::Rgb15};

static PALETTE: &[Rgb15] = &include_colours!("gfx/pastel.png");

assert_eq!(PALETTE.len(), 64);