pub fn from_lch(l: Scalar, c: Scalar, h: Scalar, alpha: Scalar) -> Color {
        #![allow(clippy::many_single_char_names)]
        const DEG2RAD: Scalar = std::f64::consts::PI / 180.0;

        let a = c * Scalar::cos(h * DEG2RAD);
        let b = c * Scalar::sin(h * DEG2RAD);

        Self::from_lab(l, a, b, alpha)
    }
/// Create a `Color` from lightness, chroma and hue coordinates in the CIE LCh color space.
/// This is a cylindrical transform of the Lab color space. Note: See documentation for
/// `from_xyz`. The same restrictions apply here.
///
/// See: https://en.wikipedia.org/wiki/Lab_color_space
Create a `Color` from lightness, chroma and hue coordinates in the CIE LCh color space.
This is a cylindrical transform of the Lab color space. Note: See documentation for
`from_xyz`. The same restrictions apply here.


Create a ` Color ` from lightness chroma and hue coordinates in the CIE LCh color space . This is a cylindrical transform of the Lab color space . Note : See documentation for ` from_xyz ` . The same restrictions apply here .
pub fn from_lch(l: Scalar, c: Scalar, h: Scalar, alpha: Scalar) -> Color {
        #![allow(clippy::many_single_char_names)]
        const DEG2RAD: Scalar = std::f64::consts::PI / 180.0;
        let a = c * Scalar::cos(h * DEG2RAD);
        let b = c * Scalar::sin(h * DEG2RAD);
        Self::from_lab(l, a, b, alpha)
    }
pub fn from_lch ( l : Scalar , c : Scalar , h : Scalar , alpha : Scalar ) -> Color { # ! [ allow ( clippy many_single_char_names ) ] const DEG2RAD : Scalar = std :: f64 :: consts :: PI / 180.0 ; let a = c * Scalar :: cos ( h * DEG2RAD ) ; let b = c * Scalar :: sin ( h * DEG2RAD ) ; Self :: from_lab ( l , a , b , alpha ) }
Create a `Color` from lightness, chroma and hue coordinates in the CIE LCh color space.
Create a ` Color ` from lightness chroma and hue coordinates in the CIE LCh color space .
l
Scalar
c
Scalar
h
Scalar
alpha
Scalar
l
Scalar
c
Scalar
h
Scalar
alpha
Scalar