Skip to main content

graphics/color/
mod.rs

1mod argb8888;
2pub mod palette;
3mod rgb565;
4mod rgb888;
5mod rgba8888;
6
7pub use argb8888::*;
8pub use rgb565::*;
9pub use rgb888::*;
10pub use rgba8888::*;
11
12pub type Color = ColorRGB888;
13
14#[cfg(feature = "rendering_rgb565")]
15pub type RenderingColor = ColorRGB565;
16#[cfg(feature = "rendering_xrgb8888")]
17pub type RenderingColor = ColorARGB8888;
18
19#[cfg(all(feature = "rendering_xrgb8888", feature = "rendering_rgb565"))]
20compile_error!(
21    "Features \"rendering_rgb565\" and \"rendering_xrgb8888\" cannot be enabled at the same time"
22);
23
24#[cfg(not(any(feature = "rendering_rgb565", feature = "rendering_xrgb8888")))]
25compile_error!("Either feature \"rendering_rgb565\" or \"rendering_xrgb8888\" must be enabled");