Type Alias nannou::prelude::Srgba

source ·
pub type Srgba<T = f32> = Alpha<Rgb<Srgb, T>, T>;
Expand description

Nonlinear sRGB with an alpha component.

Aliased Type§

struct Srgba<T = f32> {
    pub color: Rgb<Srgb, T>,
    pub alpha: T,
}

Fields§

§color: Rgb<Srgb, T>

The color.

§alpha: T

The transparency component. 0.0 is fully transparent and 1.0 is fully opaque.