pub type GammaLumaa<T = f32> = Lumaa<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 with an alpha component.
Aliased Type§
#[repr(C)]pub struct GammaLumaa<T = f32> {
pub color: Luma<Gamma<D65>, T>,
pub alpha: T,
}Fields§
§color: Luma<Gamma<D65>, T>The color.
alpha: TThe transparency component. 0.0 (or 0u8) is fully transparent and 1.0 (or 255u8) is fully opaque.