Struct sixtyfps::RgbaColor [−]
pub struct RgbaColor<T> { pub alpha: T, pub red: T, pub green: T, pub blue: T, }
Expand description
RgbaColor stores the red, green, blue and alpha components of a color
with the precision of the generic parameter T. For example if T is f32,
the values are normalized between 0 and 1. If T is u8, they values range
is 0 to 255.
This is merely a helper class for use with Color
.
Fields
alpha: T
The alpha component.
red: T
The red channel.
green: T
The green channel.
blue: T
The blue channel.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for RgbaColor<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for RgbaColor<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Checks that type has a default value.