palette

Type Alias Oklcha

source
pub type Oklcha<T = f32> = Alpha<Oklch<T>, T>;
Expand description

Oklch with an alpha component. See the Oklcha implementation in Alpha.

Aliased Type§

struct Oklcha<T = f32> {
    pub color: Oklch<T>,
    pub alpha: T,
}

Fields§

§color: Oklch<T>

The color.

§alpha: T

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