pub fn from_encoding<St>(color: Alpha<Rgb<St, T>, A>) -> Self
    where
        St: RgbStandard<T, Space = S::Space>,
    {
        Self::new(
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.red)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.green)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.blue)),
            color.alpha,
        )
    }
/// Convert RGB from a different encoding with transparency.
Convert RGB from a different encoding with transparency.
Convert RGB from a different encoding with transparency .
pub fn from_encoding<St>(color: Alpha<Rgb<St, T>, A>) -> Self
    where
        St: RgbStandard<T, Space = S::Space>,
    {
        Self::new(
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.red)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.green)),
            S::TransferFn::from_linear(St::TransferFn::into_linear(color.blue)),
            color.alpha,
        )
    }
pub fn from_encoding < St > ( color : Alpha < Rgb < St , T > , A > ) -> Self where St : RgbStandard < T , Space = S :: Space > , { Self :: new ( S :: TransferFn :: from_linear ( St :: TransferFn :: into_linear ( color . red ) ) , S :: TransferFn :: from_linear ( St :: TransferFn :: into_linear ( color . green ) ) , S :: TransferFn :: from_linear ( St :: TransferFn :: into_linear ( color . blue ) ) , color . alpha , ) }
Convert RGB from a different encoding with transparency.
Convert RGB from a different encoding with transparency .
color
Alpha<Rgb<St, T>, A>
color
Alpha<Rgb<St, T>, A>