color

Trait Color

Source
pub trait Color<T>: Copy {
    // Required methods
    fn clamp_s(self, lo: T, hi: T) -> Self;
    fn clamp_c(self, lo: Self, hi: Self) -> Self;
    fn inverse(self) -> Self;
    fn mix(self, other: Self, value: T) -> Self;
}

Required Methods§

Source

fn clamp_s(self, lo: T, hi: T) -> Self

Source

fn clamp_c(self, lo: Self, hi: Self) -> Self

Source

fn inverse(self) -> Self

Source

fn mix(self, other: Self, value: T) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Channel + NumCast + Num, S: TransferFunction> Color<T> for Hsv<T, S>

Source§

impl<T: Channel, C: Color<T>> Color<T> for AlphaColor<T, C>

Source§

impl<T: Channel, S> Color<T> for Luma<T, S>

Source§

impl<T: Channel, S> Color<T> for Rgb<T, S>