Skip to main content

Module convert

Module convert 

Source
Expand description

Convert themes defined in Rgb888 to any target PixelColor.

All preset themes are defined as Theme<'static, Rgb888> constants in crate::theme. Users on a different color depth (typically Rgb565 for embedded touchscreens) call convert_theme to get a theme in their target color.

Functionsยง

convert_theme
Convert a Theme<'a, Rgb888> to Theme<'a, C> for any C: From<Rgb888>.