palette::hsl

Type Alias Hsla

source
pub type Hsla<S = Srgb, T = f32> = Alpha<Hsl<S, T>, T>;
Expand description

Linear HSL with an alpha component. See the Hsla implementation in Alpha.

Aliased Type§

struct Hsla<S = Srgb, T = f32> {
    pub color: Hsl<S, T>,
    pub alpha: T,
}

Fields§

§color: Hsl<S, T>

The color.

§alpha: T

The transparency component. 0.0 (or 0u8) is fully transparent and 1.0 (or 255u8) is fully opaque.