image::color

Trait Invert

Source
pub(crate) trait Invert {
    // Required method
    fn invert(&mut self);
}
Expand description

Invert a color

Required Methods§

Source

fn invert(&mut self)

Inverts a color in-place.

Implementors§

Source§

impl<T: Primitive> Invert for Luma<T>

Source§

impl<T: Primitive> Invert for LumaA<T>

Source§

impl<T: Primitive> Invert for Rgb<T>

Source§

impl<T: Primitive> Invert for Rgba<T>