Type Alias nannou_core::color::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.
Trait Implementations§
source§impl<S> IntoLinSrgba<S> for SrgbLuma<S>
impl<S> IntoLinSrgba<S> for SrgbLuma<S>
source§fn into_lin_srgba(self) -> LinSrgba<S>
fn into_lin_srgba(self) -> LinSrgba<S>
Convert self into RGBA.