Type Alias nannou::color::rgb::Rgba

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

Generic RGB with an alpha component. See the Rgba implementation in Alpha.

Aliased Type§

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

Fields§

§color: Rgb<S, T>

The color.

§alpha: T

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