Struct bufro::Color [−][src]
#[repr(C)]pub struct Color {
pub r: OrderedFloat<f32>,
pub g: OrderedFloat<f32>,
pub b: OrderedFloat<f32>,
pub a: OrderedFloat<f32>,
}
Expand description
Represents a color with values from 0-1
Fields
r: OrderedFloat<f32>
g: OrderedFloat<f32>
b: OrderedFloat<f32>
a: OrderedFloat<f32>
Implementations
Creates a new color from the given floating point values. (0-1)
Creates a new color from the given integer values. (0-255)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl UnwindSafe for Color
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Compare self to key
and return true
if they are equal.