Trait embedded_graphics::pixelcolor::GrayColor

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

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

Grayscale color.

Required Associated Constants§

source

const BLACK: Self

Black color (0% luma).

source

const WHITE: Self

White color (100% luma).

Required Methods§

source

fn luma(&self) -> u8

Returns the luma channel value.

Object Safety§

This trait is not object safe.

Implementors§