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 (or 0u8) is fully transparent and 1.0 (or 255u8) is fully opaque.