commit
34a0d81b75
|
|
@ -85,8 +85,8 @@ impl From<BinaryColor> for OctColor {
|
||||||
#[cfg(feature = "graphics")]
|
#[cfg(feature = "graphics")]
|
||||||
impl From<OctColor> for embedded_graphics_core::pixelcolor::Rgb888 {
|
impl From<OctColor> for embedded_graphics_core::pixelcolor::Rgb888 {
|
||||||
fn from(b: OctColor) -> Self {
|
fn from(b: OctColor) -> Self {
|
||||||
let (r, b, g) = b.rgb();
|
let (r, g, b) = b.rgb();
|
||||||
Self::new(r, b, g)
|
Self::new(r, g, b)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue