pub struct ColorMix {
pub keep: f32,
pub add: [f32; 4],
}Expand description
A color change base * keep + add in premultiplied linear light. Mixing toward a target by
w is keep = 1 - w, add = w * target; mixes compose.
Fields§
§keep: f32Factor on the base color, in [0, 1].
add: [f32; 4]Premultiplied linear-light RGBA in [0, 1].
Trait Implementations§
impl Copy for ColorMix
impl StructuralPartialEq for ColorMix
Auto Trait Implementations§
impl Freeze for ColorMix
impl RefUnwindSafe for ColorMix
impl Send for ColorMix
impl Sync for ColorMix
impl Unpin for ColorMix
impl UnsafeUnpin for ColorMix
impl UnwindSafe for ColorMix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more