palette::luma

Type Alias GammaLuma

source
pub type GammaLuma<T = f32> = Luma<Gamma<D65>, T>;
Expand description

Gamma 2.2 encoded luminance.

Aliased Type§

struct GammaLuma<T = f32> {
    pub luma: T,
    pub standard: PhantomData<Gamma<D65>>,
}

Fields§

§luma: T

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

§standard: PhantomData<Gamma<D65>>

The kind of RGB standard. sRGB is the default.