[−][src]Trait amethyst_rendy::palette::Saturate
A trait for colors where the saturation (or chroma) can be manipulated without conversion.
use palette::{Hsv, Saturate}; let a = Hsv::new(0.0, 0.25, 1.0); let b = Hsv::new(0.0, 1.0, 1.0); assert_eq!(a.saturate(1.0), b.desaturate(0.5));
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn desaturate(&self, factor: Self::Scalar) -> Self
Decrease the saturation by factor
.
Implementors
impl<C> Saturate for Alpha<C, <C as Saturate>::Scalar> where
C: Saturate,
[src]
C: Saturate,
type Scalar = <C as Saturate>::Scalar
fn saturate(
&self,
factor: <C as Saturate>::Scalar
) -> Alpha<C, <C as Saturate>::Scalar>
[src]
&self,
factor: <C as Saturate>::Scalar
) -> Alpha<C, <C as Saturate>::Scalar>
impl<S, T> Saturate for Color<S, T> where
S: RgbSpace,
T: Float + Component,
[src]
S: RgbSpace,
T: Float + Component,
impl<S, T> Saturate for Hsl<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<S, T> Saturate for Hsv<S, T> where
S: RgbSpace,
T: Component + Float,
[src]
S: RgbSpace,
T: Component + Float,
impl<Wp, T> Saturate for Lch<Wp, T> where
T: Component + Float,
Wp: WhitePoint,
[src]
T: Component + Float,
Wp: WhitePoint,