Type Alias palette::luma::SrgbLuma

source ·
pub type SrgbLuma<T = f32> = Luma<Srgb, T>;
Expand description

sRGB encoded luminance.

Aliased Type§

struct SrgbLuma<T = f32> {
    pub luma: T,
    pub standard: PhantomData<Srgb>,
}

Fields§

§luma: T

The lightness of the color. 0.0 is black and 1.0 is white.

§standard: PhantomData<Srgb>

The kind of RGB standard. sRGB is the default.