Trait embedded_graphics::pixelcolor::GrayColor[][src]

pub trait GrayColor: PixelColor {
    const BLACK: Self;
    const WHITE: Self;

    fn luma(&self) -> u8;
}
Expand description

Grayscale color.

Associated Constants

Black color (0% luma).

White color (100% luma).

Required methods

Returns the luma channel value.

Implementors