pub type GammaLuma<T = f32> = Luma<Gamma<D65>, T>;👎Deprecated since 0.7.7:
Gamma, GammaFn and F2p2 are error prone and incorrectly implemented. See palette::encoding for possible alternatives or implement palette::encoding::FromLinear and palette::encoding::IntoLinear for a custom type.
Expand description
Gamma 2.2 encoded luminance.
Aliased Type§
#[repr(C)]pub struct GammaLuma<T = f32> {
pub luma: T,
pub standard: PhantomData<Gamma<D65>>,
}Fields§
§luma: TThe 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.