Trait color::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

Implementors§

source§

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

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>