Struct components::prelude::Alpha
[−]pub struct Alpha<C> where
C: ColorSpace, { /* private fields */ }
Expand description
Represents the color with aplha component
Implementations
impl<C> Alpha<C> where
C: ColorSpace,
impl<C> Alpha<C> where
C: ColorSpace,
Trait Implementations
impl<C> AdjustHue for Alpha<C> where
C: AdjustHue + ColorSpace,
impl<C> AdjustHue for Alpha<C> where
C: AdjustHue + ColorSpace,
fn adjust_hue(self, delta: f32) -> Alpha<C>
fn adjust_hue(self, delta: f32) -> Alpha<C>
Adjust hue component of color with delta
fn complement(self) -> Self
fn complement(self) -> Self
Rotate hue component with 180 degrees
impl<C> Clone for Alpha<C> where
C: Clone + ColorSpace,
impl<C> Clone for Alpha<C> where
C: Clone + ColorSpace,
impl<C> Debug for Alpha<C> where
C: Debug + ColorSpace,
impl<C> Debug for Alpha<C> where
C: Debug + ColorSpace,
impl<C> GetAlpha<C> for Alpha<C> where
C: ColorSpace,
impl<C> GetAlpha<C> for Alpha<C> where
C: ColorSpace,
fn get_opacity(&self) -> f32
fn get_opacity(&self) -> f32
Retrieve the alpha component as opacity
fn get_transparency(&self) -> f32
fn get_transparency(&self) -> f32
Retrieve the alpha component as transparency
impl<C> HasAlpha<C> for Alpha<C> where
C: ColorSpace,
impl<C> HasAlpha<C> for Alpha<C> where
C: ColorSpace,
impl<C> Lighten for Alpha<C> where
C: Lighten + ColorSpace,
impl<C> Lighten for Alpha<C> where
C: Lighten + ColorSpace,
impl<C> Round for Alpha<C> where
C: Round + ColorSpace,
impl<C> Round for Alpha<C> where
C: Round + ColorSpace,
impl<C> Saturate for Alpha<C> where
C: Saturate + ColorSpace,
impl<C> Saturate for Alpha<C> where
C: Saturate + ColorSpace,
fn desaturate(self, delta: f32) -> Self
fn desaturate(self, delta: f32) -> Self
Desaturate the color with delta
impl<C> SetAlpha<C> for Alpha<C> where
C: ColorSpace,
impl<C> SetAlpha<C> for Alpha<C> where
C: ColorSpace,
fn set_opacity(&mut self, opacity: f32) -> &Alpha<C>
fn set_opacity(&mut self, opacity: f32) -> &Alpha<C>
Set the alpha component as opacity
fn set_transparency(&mut self, transparency: f32) -> &Alpha<C>
fn set_transparency(&mut self, transparency: f32) -> &Alpha<C>
Set the alpha component as transparency
impl<C> Copy for Alpha<C> where
C: Copy + ColorSpace,
Auto Trait Implementations
impl<C> RefUnwindSafe for Alpha<C> where
C: RefUnwindSafe,
impl<C> Send for Alpha<C> where
C: Send,
impl<C> Sync for Alpha<C> where
C: Sync,
impl<C> Unpin for Alpha<C> where
C: Unpin,
impl<C> UnwindSafe for Alpha<C> where
C: UnwindSafe,
Blanket Implementations
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<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<T> Pointable for T
impl<T> Pointable for T
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
.