pub fn new(
        hue: Rational,
        sat: Rational,
        lum: Rational,
        alpha: Rational,
    ) -> Hsla {
        Hsla {
            hue: deg_mod(hue),
            sat: clamp(sat, zero(), one()),
            lum: clamp(lum, zero(), one()),
            alpha: clamp(alpha, zero(), one()),
        }
    }
/// Create a new hsla color.
Create a new hsla color.
Create a new hsla color .
pub fn new(
        hue: Rational,
        sat: Rational,
        lum: Rational,
        alpha: Rational,
    ) -> Hsla {
        Hsla {
            hue: deg_mod(hue),
            sat: clamp(sat, zero(), one()),
            lum: clamp(lum, zero(), one()),
            alpha: clamp(alpha, zero(), one()),
        }
    }
pub fn new ( hue : Rational , sat : Rational , lum : Rational , alpha : Rational , ) -> Hsla { Hsla { hue : deg_mod ( hue ) , sat : clamp ( sat , zero ( ) , one ( ) ) , lum : clamp ( lum , zero ( ) , one ( ) ) , alpha : clamp ( alpha , zero ( ) , one ( ) ) , } }
Create a new hsla color.
Create a new hsla color .
hue
Rational
sat
Rational
lum
Rational
alpha
Rational