cosmic::cosmic_theme::palette

Type Alias Hwba

source
pub type Hwba<S = Srgb, T = f32> = Alpha<Hwb<S, T>, T>;
Expand description

Linear HWB with an alpha component. See the Hwba implementation in Alpha.

Aliased Type§

struct Hwba<S = Srgb, T = f32> {
    pub color: Hwb<S, T>,
    pub alpha: T,
}

Fields§

§color: Hwb<S, T>

The color.

§alpha: T

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