Struct components::foundation::colorspace::CmykColor
[−]Expand description
Cmyk color representation
Fields
cyan: f32
Cyan component
magenta: f32
Magenta component
yellow: f32
Yellow component
key: f32
Key component
Implementations
Trait Implementations
impl ColorSpace for CmykColor
impl ColorTransition for CmykColor
impl Copy for CmykColor
impl NonRadialSpace for CmykColor
impl NonRgbSpace for CmykColor
impl NonSaturationSpace for CmykColor
impl StructuralPartialEq for CmykColor
Auto Trait Implementations
impl RefUnwindSafe for CmykColor
impl Send for CmykColor
impl Sync for CmykColor
impl Unpin for CmykColor
impl UnwindSafe for CmykColor
Blanket Implementations
impl<C> AdjustHue for C where
C: Clone + GetHue + SetHue,
impl<C> AdjustHue for C where
C: Clone + GetHue + SetHue,
fn adjust_hue(self, delta: f32) -> C
fn adjust_hue(self, delta: f32) -> C
Adjust hue component of color with delta
fn complement(self) -> Self
fn complement(self) -> Self
Rotate hue component with 180 degrees
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<Fr, To> FromColor<Fr> for To where
To: From<Color>,
Fr: Into<Color>,
impl<Fr, To> FromColor<Fr> for To where
To: From<Color>,
Fr: Into<Color>,
fn from_color(from_color: Fr) -> To
fn from_color(from_color: Fr) -> To
Convert from color
impl<C> GetHue for C where
C: NonRadialSpace,
impl<C> GetHue for C where
C: NonRadialSpace,
impl<C> GetRadialSaturation for C where
C: Clone + Copy + FromColor<HslColor> + IntoColor<HslColor> + FromColor<HsvColor> + IntoColor<HsvColor>,
impl<C> GetRadialSaturation for C where
C: Clone + Copy + FromColor<HslColor> + IntoColor<HslColor> + FromColor<HsvColor> + IntoColor<HsvColor>,
fn get_hsl_saturation(self) -> f32
fn get_hsl_saturation(self) -> f32
Retrieve hsl saturation
fn get_hsv_saturation(self) -> f32
fn get_hsv_saturation(self) -> f32
Set hsv saturation
impl<C> Grayscale for C where
C: Saturate,
impl<C> Grayscale for C where
C: Saturate,
fn grayscale(self) -> Self
fn grayscale(self) -> Self
Desaturate the color to grayscale
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<C> Invert for C where
C: ColorTransition,
impl<C> Invert for C where
C: ColorTransition,
fn invert(self) -> C
fn invert(self) -> C
Invert color
impl<T> Pointable for T
impl<T> Pointable for T
impl<C> Saturate for C where
C: Clone + GetRadialSaturation + SetRadialSaturation,
impl<C> Saturate for C where
C: Clone + GetRadialSaturation + SetRadialSaturation,
fn desaturate(self, delta: f32) -> Self
fn desaturate(self, delta: f32) -> Self
Desaturate the color with delta
impl<C> SetHue for C where
C: NonRadialSpace,
impl<C> SetHue for C where
C: NonRadialSpace,
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<C> SetRadialSaturation for C where
C: Clone + Copy + FromColor<HslColor> + IntoColor<HslColor> + FromColor<HsvColor> + IntoColor<HsvColor>,
impl<C> SetRadialSaturation for C where
C: Clone + Copy + FromColor<HslColor> + IntoColor<HslColor> + FromColor<HsvColor> + IntoColor<HsvColor>,
fn set_hsl_saturation(&mut self, saturation: f32) -> C
fn set_hsl_saturation(&mut self, saturation: f32) -> C
Retrieve hsl saturation
fn set_hsv_saturation(&mut self, saturation: f32) -> C
fn set_hsv_saturation(&mut self, saturation: f32) -> C
Set hsv saturation
impl<C> ToHexString for C where
C: Into<RgbColor> + Clone,
impl<C> ToHexString for C where
C: Into<RgbColor> + Clone,
fn to_hex_string(&self) -> String
fn to_hex_string(&self) -> String
Represents a color as a hexadecimal string