Trait picto::color::ComponentWise[][src]

pub trait ComponentWise {
    type Scalar: Float;
    fn component_wise<F>(&self, other: &Self, f: F) -> Self
    where
        F: FnMut(Self::Scalar, Self::Scalar) -> Self::Scalar
;
fn component_wise_self<F>(&self, f: F) -> Self
    where
        F: FnMut(Self::Scalar) -> Self::Scalar
; }
Expand description

Perform a unary or binary operation on each component of a color.

Associated Types

The scalar type for color components.

Required methods

Perform a binary operation on this and an other color.

Perform a unary operation on this color.

Implementors