Struct azul_webrender_api::ColorF [−][src]
Expand description
Represents RGBA screen colors with floating point numbers.
All components must be between 0.0 and 1.0. An alpha value of 1.0 is opaque while 0.0 is fully transparent.
Fields
r: f32
g: f32
b: f32
a: f32
Implementations
Multiply the RGB channels (but not alpha) with a given factor.
Multiply the RGB components with the alpha channel.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
Auto Trait Implementations
impl RefUnwindSafe for ColorF
impl UnwindSafe for ColorF
Blanket Implementations
Mutably borrows from an owned value. Read more