Browse Source

Merge pull request #88 from crzysdrs/main

Transposed color channels
main
Chris 4 years ago committed by GitHub
parent
commit
34a0d81b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/color.rs

4
src/color.rs

@ -85,8 +85,8 @@ impl From<BinaryColor> for OctColor {
#[cfg(feature = "graphics")]
impl From<OctColor> 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)
}
}

Loading…
Cancel
Save