pub struct DuotoneEffect {
pub colors: [Color; 2],
}Expand description
This element specifies a duotone effect.
For each pixel, combines clr1 and clr2 through a linear interpolation to determine the new color for that pixel.
Fields§
§colors: [Color; 2]Implementations§
Source§impl DuotoneEffect
impl DuotoneEffect
Trait Implementations§
Source§impl Clone for DuotoneEffect
impl Clone for DuotoneEffect
Source§fn clone(&self) -> DuotoneEffect
fn clone(&self) -> DuotoneEffect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DuotoneEffect
impl RefUnwindSafe for DuotoneEffect
impl Send for DuotoneEffect
impl Sync for DuotoneEffect
impl Unpin for DuotoneEffect
impl UnwindSafe for DuotoneEffect
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