cosmic::cosmic_theme::palette

Type Alias Oklaba

source
pub type Oklaba<T = f32> = Alpha<Oklab<T>, T>;
Expand description

Oklab with an alpha component.

Aliased Type§

struct Oklaba<T = f32> {
    pub color: Oklab<T>,
    pub alpha: T,
}

Fields§

§color: Oklab<T>

The color.

§alpha: T

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