Struct components::Color [−]
Implementations
impl Color<f64>
impl Color<f64>
pub fn new(red: f64, green: f64, blue: f64, alpha: f64) -> Color<f64>
pub fn rgb(red: u8, green: u8, blue: u8) -> Color<f64>
pub fn rgba(red: u8, green: u8, blue: u8, alpha: u8) -> Color<f64>
pub fn hsl(hue: f64, saturation: f64, lightness: f64) -> Color<f64>
pub fn hsla(hue: f64, saturation: f64, lightness: f64, alpha: f64) -> Color<f64>
pub fn hsv(hue: f64, saturation: f64, value: f64) -> Color<f64>
pub fn hsva(hue: f64, saturation: f64, value: f64, alpha: f64) -> Color<f64>
pub fn cmyk(cyan: f64, magenta: f64, yellow: f64, key: f64) -> Color<f64>
pub fn cmyka(
cyan: f64,
magenta: f64,
yellow: f64,
key: f64,
alpha: f64
) -> Color<f64>
cyan: f64,
magenta: f64,
yellow: f64,
key: f64,
alpha: f64
) -> Color<f64>
pub fn cmy(cyan: f64, magenta: f64, yellow: f64) -> Color<f64>
pub fn cmya(cyan: f64, magenta: f64, yellow: f64, alpha: f64) -> Color<f64>
pub fn RGB(red: u8, green: u8, blue: u8) -> Color<f64>
👎 Deprecated
pub fn RGBA(red: u8, green: u8, blue: u8, alpha: u8) -> Color<f64>
👎 Deprecated
pub fn HSL(hue: f64, saturation: f64, lightness: f64) -> Color<f64>
👎 Deprecated
pub fn HSV(hue: f64, saturation: f64, value: f64) -> Color<f64>
👎 Deprecated
pub fn CMYK(cyan: f64, magenta: f64, yellow: f64, key: f64) -> Color<f64>
👎 Deprecated
pub fn CMY(cyan: f64, magenta: f64, yellow: f64) -> Color<f64>
👎 Deprecated
Trait Implementations
impl<T> Clone for Color<T> where
T: Clone + Float,
impl<T> Clone for Color<T> where
T: Clone + Float,
pub fn clone(&self) -> Color<T>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ColorTransition for Color<f64>
impl ColorTransition for Color<f64>
impl NonRadialSpace for Color<f64>
impl NonRadialSpace for Color<f64>
impl NonSaturationSpace for Color<f64>
impl NonSaturationSpace for Color<f64>
impl<T> StructuralEq for Color<T> where
T: Float,
impl<T> StructuralEq for Color<T> where
T: Float,
impl<T> StructuralPartialEq for Color<T> where
T: Float,
impl<T> StructuralPartialEq for Color<T> where
T: Float,
Auto Trait Implementations
impl<T> RefUnwindSafe for Color<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Color<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Color<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Color<T> where
T: UnwindSafe,
Blanket Implementations
impl<C> AdjustHue for C where
C: Clone + GetHue + SetHue,
impl<C> AdjustHue for C where
C: Clone + GetHue + SetHue,
pub fn adjust_hue(self, delta: f64) -> C
pub fn complement(self) -> Self
impl<Fr, To> FromColor<Fr> for To where
Fr: Into<Color<f64>>,
To: From<Color<f64>>,
impl<Fr, To> FromColor<Fr> for To where
Fr: Into<Color<f64>>,
To: From<Color<f64>>,
pub fn from_color(from_color: Fr) -> To
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>,
pub fn get_hsl_saturation(self) -> f64
pub fn get_hsv_saturation(self) -> f64
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
pub fn into_color(self) -> To
impl<C> Invert for C where
C: ColorTransition,
impl<C> Invert for C where
C: ColorTransition,
pub fn invert(self) -> C
impl<C> Saturate for C where
C: Clone + GetRadialSaturation + SetRadialSaturation,
impl<C> Saturate for C where
C: Clone + GetRadialSaturation + SetRadialSaturation,
pub fn saturate(self, delta: f64) -> C
pub fn desaturate(self, delta: f64) -> Self
impl<C> SetHue for C where
C: NonRadialSpace,
impl<C> SetHue for C where
C: NonRadialSpace,
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>,
pub fn set_hsl_saturation(&mut self, saturation: f64) -> C
pub fn set_hsv_saturation(&mut self, saturation: f64) -> C
impl<C> ToHexString for C where
C: Into<RgbColor> + Clone,
impl<C> ToHexString for C where
C: Into<RgbColor> + Clone,
pub fn to_hex_string(&self) -> String
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,