Trait Luminance
dcolor
pub trait Luminance { fn luminance(self) -> f64; }
Gets the luminance of a non-luminance color type.
fn luminance(self) -> f64
impl<T> Luminance for Rgb<T> where T: ClampInto<f64>,
impl<T> Luminance for Rgba<T> where T: ClampInto<f64>,