logo
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