diff --git a/src/color.rs b/src/color.rs index e5d412c..b9bd27a 100644 --- a/src/color.rs +++ b/src/color.rs @@ -85,8 +85,8 @@ impl From for OctColor { #[cfg(feature = "graphics")] impl From for embedded_graphics_core::pixelcolor::Rgb888 { fn from(b: OctColor) -> Self { - let (r, b, g) = b.rgb(); - Self::new(r, b, g) + let (r, g, b) = b.rgb(); + Self::new(r, g, b) } }