[−][src]Struct nannou::color::Alpha
An alpha component wrapper for colors.
Fields
color: C
The color.
alpha: T
The transparency component. 0.0 is fully transparent and 1.0 is fully opaque.
Methods
impl<T> Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
Rgba
implementations.
pub fn new(red: T, green: T, blue: T, alpha: T) -> Alpha<Rgb<T>, T>
[src]
Linear RGB with transparency.
pub fn new_u8(red: u8, green: u8, blue: u8, alpha: u8) -> Alpha<Rgb<T>, T>
[src]
Linear RGB with transparency from 8 bit values.
pub fn from_pixel<P>(pixel: &P) -> Alpha<Rgb<T>, T> where
P: RgbPixel<T>,
[src]
P: RgbPixel<T>,
Linear RGB from a linear pixel value.
pub fn to_pixel<P>(&self) -> P where
P: RgbPixel<T>,
[src]
P: RgbPixel<T>,
Convert to a linear RGB pixel. Rgb
is already assumed to be linear,
so the components will just be clamped to [0.0, 1.0] before conversion.
use palette::Rgba; let c = Rgba::new(0.5, 0.3, 0.1, 0.5); assert_eq!((c.red, c.green, c.blue, c.alpha), c.to_pixel()); assert_eq!((0.5, 0.3, 0.1, 0.5), c.to_pixel());
impl<T> Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
Lumaa
implementations.
pub fn new(luma: T, alpha: T) -> Alpha<Luma<T>, T>
[src]
Linear luminance with transparency.
pub fn new_u8(luma: u8, alpha: u8) -> Alpha<Luma<T>, T>
[src]
Linear luminance and transparency from 8 bit values.
impl<T> Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
Yxya
implementations.
impl<T> Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
Xyza
implementations.
impl<T> Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
Laba
implementations.
impl<T> Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
Lcha
implementations.
pub fn new(l: T, chroma: T, hue: LabHue<T>, alpha: T) -> Alpha<Lch<T>, T>
[src]
CIE LCh° and transparency.
impl<T> Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
Hsva
implementations.
pub fn new(
hue: RgbHue<T>,
saturation: T,
value: T,
alpha: T
) -> Alpha<Hsv<T>, T>
[src]
hue: RgbHue<T>,
saturation: T,
value: T,
alpha: T
) -> Alpha<Hsv<T>, T>
Linear HSV and transparency.
impl<T> Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
Hsla
implementations.
pub fn new(
hue: RgbHue<T>,
saturation: T,
lightness: T,
alpha: T
) -> Alpha<Hsl<T>, T>
[src]
hue: RgbHue<T>,
saturation: T,
lightness: T,
alpha: T
) -> Alpha<Hsl<T>, T>
Linear HSL and transparency.
impl<T> Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
Hwba
implementations.
pub fn new(
hue: RgbHue<T>,
whiteness: T,
blackness: T,
alpha: T
) -> Alpha<Hwb<T>, T>
[src]
hue: RgbHue<T>,
whiteness: T,
blackness: T,
alpha: T
) -> Alpha<Hwb<T>, T>
Linear HSV and transparency.
impl<T> Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
Colora
implementations.
pub fn y(luma: T, alpha: T) -> Alpha<Color<T>, T>
[src]
Linear luminance.
pub fn y_u8(luma: u8, alpha: u8) -> Alpha<Color<T>, T>
[src]
Linear luminance from an 8 bit value.
pub fn rgb(red: T, green: T, blue: T, alpha: T) -> Alpha<Color<T>, T>
[src]
Linear RGB.
pub fn rgb_u8(red: u8, green: u8, blue: u8, alpha: u8) -> Alpha<Color<T>, T>
[src]
Linear RGB from 8 bit values.
pub fn xyz(x: T, y: T, z: T, alpha: T) -> Alpha<Color<T>, T>
[src]
CIE XYZ.
pub fn yxy(x: T, y: T, luma: T, alpha: T) -> Alpha<Color<T>, T>
[src]
CIE Yxy.
pub fn lab(l: T, a: T, b: T, alpha: T) -> Alpha<Color<T>, T>
[src]
CIE Lab*.
pub fn lch(l: T, chroma: T, hue: LabHue<T>, alpha: T) -> Alpha<Color<T>, T>
[src]
CIE LCh°.
pub fn hsv(
hue: RgbHue<T>,
saturation: T,
value: T,
alpha: T
) -> Alpha<Color<T>, T>
[src]
hue: RgbHue<T>,
saturation: T,
value: T,
alpha: T
) -> Alpha<Color<T>, T>
Linear HSV.
pub fn hsl(
hue: RgbHue<T>,
saturation: T,
lightness: T,
alpha: T
) -> Alpha<Color<T>, T>
[src]
hue: RgbHue<T>,
saturation: T,
lightness: T,
alpha: T
) -> Alpha<Color<T>, T>
Linear HSL.
pub fn hwb(
hue: RgbHue<T>,
whiteness: T,
balckness: T,
alpha: T
) -> Alpha<Color<T>, T>
[src]
hue: RgbHue<T>,
whiteness: T,
balckness: T,
alpha: T
) -> Alpha<Color<T>, T>
Linear HWB.
Trait Implementations
impl<C, T> ComponentWise for Alpha<C, T> where
C: ComponentWise<Scalar = T>,
T: Float,
[src]
C: ComponentWise<Scalar = T>,
T: Float,
type Scalar = T
The scalar type for color components.
fn component_wise<F>(&self, other: &Alpha<C, T>, f: F) -> Alpha<C, T> where
F: FnMut(T, T) -> T,
[src]
F: FnMut(T, T) -> T,
fn component_wise_self<F>(&self, f: F) -> Alpha<C, T> where
F: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
impl<T> From<Alpha<Lab<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Srgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<GammaRgb<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<C, T> From<C> for Alpha<C, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Color<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Luma<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lch<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<C, T> From<PreAlpha<C, T>> for Alpha<C, T> where
C: ComponentWise<Scalar = T>,
T: Float,
[src]
C: ComponentWise<Scalar = T>,
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Hsl<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Color<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<C, T> From<Alpha<C, T>> for PreAlpha<C, T> where
C: ComponentWise<Scalar = T>,
T: Float,
[src]
C: ComponentWise<Scalar = T>,
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Yxy<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Luma<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Yxy<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Lab<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Lch<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Rgb<T>> for Alpha<Yxy<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsl<T>, T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hwb<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Lab<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Lch<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Rgb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lch<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Alpha<Color<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Xyz<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Hsv<T>, T>> for Hsv<T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsv<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Xyz<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Luma<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Color<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hsl<T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Rgb<T>, T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Xyz<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Luma<T>, T>> for Hwb<T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Yxy<T>, T>> for Alpha<Xyz<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Alpha<Lab<T>, T>> for Alpha<Hwb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Hwb<T>> for Alpha<Hsl<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Srgb<T>> for Alpha<Rgb<T>, T> where
T: Float,
[src]
T: Float,
impl<T> From<Lab<T>> for Alpha<Hsv<T>, T> where
T: Float,
[src]
T: Float,
impl<C, T> Div<Alpha<C, T>> for Alpha<C, T> where
C: Div<C>,
T: Float,
[src]
C: Div<C>,
T: Float,
type Output = Alpha<<C as Div<C>>::Output, T>
The resulting type after applying the /
operator.
fn div(self, other: Alpha<C, T>) -> Alpha<<C as Div<C>>::Output, T>
[src]
impl<T, C> Div<T> for Alpha<C, T> where
C: Div<T>,
T: Clone + Float,
[src]
C: Div<T>,
T: Clone + Float,
type Output = Alpha<<C as Div<T>>::Output, T>
The resulting type after applying the /
operator.
fn div(self, c: T) -> Alpha<<C as Div<T>>::Output, T>
[src]
impl<C, T> Limited for Alpha<C, T> where
C: Limited,
T: Float,
[src]
C: Limited,
T: Float,
impl<C, T> DerefMut for Alpha<C, T> where
T: Float,
[src]
T: Float,
impl<C, T> Default for Alpha<C, T> where
C: Default,
T: Float,
[src]
C: Default,
T: Float,
impl<C, T> Mul<Alpha<C, T>> for Alpha<C, T> where
C: Mul<C>,
T: Float,
[src]
C: Mul<C>,
T: Float,
type Output = Alpha<<C as Mul<C>>::Output, T>
The resulting type after applying the *
operator.
fn mul(self, other: Alpha<C, T>) -> Alpha<<C as Mul<C>>::Output, T>
[src]
impl<T, C> Mul<T> for Alpha<C, T> where
C: Mul<T>,
T: Clone + Float,
[src]
C: Mul<T>,
T: Clone + Float,
type Output = Alpha<<C as Mul<T>>::Output, T>
The resulting type after applying the *
operator.
fn mul(self, c: T) -> Alpha<<C as Mul<T>>::Output, T>
[src]
impl<C> Shade for Alpha<C, <C as Shade>::Scalar> where
C: Shade,
[src]
C: Shade,
type Scalar = <C as Shade>::Scalar
The type of the lighten/darken amount.
fn lighten(
&self,
amount: <C as Shade>::Scalar
) -> Alpha<C, <C as Shade>::Scalar>
[src]
&self,
amount: <C as Shade>::Scalar
) -> Alpha<C, <C as Shade>::Scalar>
fn darken(&self, amount: Self::Scalar) -> Self
[src]
Darken the color by amount
.
impl<C> Mix for Alpha<C, <C as Mix>::Scalar> where
C: Mix,
[src]
C: Mix,
type Scalar = <C as Mix>::Scalar
The type of the mixing factor.
fn mix(
&self,
other: &Alpha<C, <C as Mix>::Scalar>,
factor: <C as Mix>::Scalar
) -> Alpha<C, <C as Mix>::Scalar>
[src]
&self,
other: &Alpha<C, <C as Mix>::Scalar>,
factor: <C as Mix>::Scalar
) -> Alpha<C, <C as Mix>::Scalar>
impl<C, T> Debug for Alpha<C, T> where
C: Debug,
T: Debug + Float,
[src]
C: Debug,
T: Debug + Float,
impl<C, T> Copy for Alpha<C, T> where
C: Copy,
T: Copy + Float,
[src]
C: Copy,
T: Copy + Float,
impl<C, T> Deref for Alpha<C, T> where
T: Float,
[src]
T: Float,
impl<C, T> PartialEq<Alpha<C, T>> for Alpha<C, T> where
C: PartialEq<C>,
T: PartialEq<T> + Float,
[src]
C: PartialEq<C>,
T: PartialEq<T> + Float,
impl<T, C> Add<T> for Alpha<C, T> where
C: Add<T>,
T: Clone + Float,
[src]
C: Add<T>,
T: Clone + Float,
type Output = Alpha<<C as Add<T>>::Output, T>
The resulting type after applying the +
operator.
fn add(self, c: T) -> Alpha<<C as Add<T>>::Output, T>
[src]
impl<C, T> Add<Alpha<C, T>> for Alpha<C, T> where
C: Add<C>,
T: Float,
[src]
C: Add<C>,
T: Float,
type Output = Alpha<<C as Add<C>>::Output, T>
The resulting type after applying the +
operator.
fn add(self, other: Alpha<C, T>) -> Alpha<<C as Add<C>>::Output, T>
[src]
impl<T, C> Sub<T> for Alpha<C, T> where
C: Sub<T>,
T: Clone + Float,
[src]
C: Sub<T>,
T: Clone + Float,
type Output = Alpha<<C as Sub<T>>::Output, T>
The resulting type after applying the -
operator.
fn sub(self, c: T) -> Alpha<<C as Sub<T>>::Output, T>
[src]
impl<C, T> Sub<Alpha<C, T>> for Alpha<C, T> where
C: Sub<C>,
T: Float,
[src]
C: Sub<C>,
T: Float,
type Output = Alpha<<C as Sub<C>>::Output, T>
The resulting type after applying the -
operator.
fn sub(self, other: Alpha<C, T>) -> Alpha<<C as Sub<C>>::Output, T>
[src]
impl<C, T> GetHue for Alpha<C, T> where
C: GetHue,
T: Float,
[src]
C: GetHue,
T: Float,
type Hue = <C as GetHue>::Hue
The kind of hue unit this color space uses. Read more
fn get_hue(&self) -> Option<<C as GetHue>::Hue>
[src]
impl<C, T> Blend for Alpha<C, T> where
C: Blend,
T: Float,
<C as Blend>::Color: ComponentWise,
Alpha<C, T>: Into<Alpha<<C as Blend>::Color, T>>,
Alpha<C, T>: From<Alpha<<C as Blend>::Color, T>>,
<<C as Blend>::Color as ComponentWise>::Scalar == T,
[src]
C: Blend,
T: Float,
<C as Blend>::Color: ComponentWise,
Alpha<C, T>: Into<Alpha<<C as Blend>::Color, T>>,
Alpha<C, T>: From<Alpha<<C as Blend>::Color, T>>,
<<C as Blend>::Color as ComponentWise>::Scalar == T,
type Color = <C as Blend>::Color
The core color type. Typically Self
for color types without alpha.
fn into_premultiplied(self) -> PreAlpha<<C as Blend>::Color, T>
[src]
fn from_premultiplied(color: PreAlpha<<C as Blend>::Color, T>) -> Alpha<C, T>
[src]
fn blend<F>(self, destination: Self, blend_function: F) -> Self where
F: BlendFunction<Self::Color>,
[src]
F: BlendFunction<Self::Color>,
Blend self, as the source color, with destination
, using blend_function
. Anything that implements BlendFunction
is acceptable, including functions and closures. Read more
fn over(self, other: Self) -> Self
[src]
Place self
over other
. This is the good old common alpha composition equation. Read more
fn inside(self, other: Self) -> Self
[src]
Results in the parts of self
that overlaps the visible parts of other
. Read more
fn outside(self, other: Self) -> Self
[src]
Results in the parts of self
that lies outside the visible parts of other
. Read more
fn atop(self, other: Self) -> Self
[src]
Place self
over only the visible parts of other
.
fn xor(self, other: Self) -> Self
[src]
Results in either self
or other
, where they do not overlap.
fn plus(self, other: Self) -> Self
[src]
Add self
and other
. This uses the alpha component to regulate the effect, so it's not just plain component wise addition. Read more
fn multiply(self, other: Self) -> Self
[src]
Multiply self
with other
. This uses the alpha component to regulate the effect, so it's not just plain component wise multiplication. Read more
fn screen(self, other: Self) -> Self
[src]
Make a color which is at least as light as self
or other
.
fn overlay(self, other: Self) -> Self
[src]
Multiply self
or other
if other is dark, or screen them if other
is light. This results in an S curve. Read more
fn darken(self, other: Self) -> Self
[src]
Return the darkest parts of self
and other
.
fn lighten(self, other: Self) -> Self
[src]
Return the lightest parts of self
and other
.
fn dodge(self, other: Self) -> Self
[src]
Lighten other
to reflect self
. Results in other
if self
is black. Read more
fn burn(self, other: Self) -> Self
[src]
Darken other
to reflect self
. Results in other
if self
is white. Read more
fn hard_light(self, other: Self) -> Self
[src]
Multiply self
or other
if other is dark, or screen them if self
is light. This is similar to overlay
, but depends on self
instead of other
. Read more
fn soft_light(self, other: Self) -> Self
[src]
Lighten other
if self
is light, or darken other
as if it's burned if self
is dark. The effect is increased if the components of self
is further from 0.5. Read more
fn difference(self, other: Self) -> Self
[src]
Return the absolute difference between self
and other
. It's basically abs(self - other)
, but regulated by the alpha component. Read more
fn exclusion(self, other: Self) -> Self
[src]
Similar to difference
, but appears to result in a lower contrast. other
is inverted if self
is white, and preserved if self
is black. Read more
impl<C> Saturate for Alpha<C, <C as Saturate>::Scalar> where
C: Saturate,
[src]
C: Saturate,
type Scalar = <C as Saturate>::Scalar
The type of the (de)saturation factor.
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>
fn desaturate(&self, factor: Self::Scalar) -> Self
[src]
Decrease the saturation by factor
.
impl<C, T> Hue for Alpha<C, T> where
C: Hue,
T: Float,
[src]
C: Hue,
T: Float,
fn with_hue(&self, hue: <C as GetHue>::Hue) -> Alpha<C, T>
[src]
fn shift_hue(&self, amount: <C as GetHue>::Hue) -> Alpha<C, T>
[src]
impl<C, T> ApproxEq for Alpha<C, T> where
C: ApproxEq<Epsilon = <T as ApproxEq>::Epsilon>,
T: ApproxEq + Float,
<T as ApproxEq>::Epsilon: Copy,
[src]
C: ApproxEq<Epsilon = <T as ApproxEq>::Epsilon>,
T: ApproxEq + Float,
<T as ApproxEq>::Epsilon: Copy,
type Epsilon = <T as ApproxEq>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> <Alpha<C, T> as ApproxEq>::Epsilon
[src]
fn default_max_relative() -> <Alpha<C, T> as ApproxEq>::Epsilon
[src]
fn default_max_ulps() -> u32
[src]
fn relative_eq(
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_relative: <Alpha<C, T> as ApproxEq>::Epsilon
) -> bool
[src]
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_relative: <Alpha<C, T> as ApproxEq>::Epsilon
) -> bool
fn ulps_eq(
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
&self,
other: &Alpha<C, T>,
epsilon: <Alpha<C, T> as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
[src]
The inverse of ApproxEq::ulps_eq
.
impl<C, T> Clone for Alpha<C, T> where
C: Clone,
T: Clone + Float,
[src]
C: Clone,
T: Clone + Float,
fn clone(&self) -> Alpha<C, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<C, S> IntoRgba<S> for Alpha<C, S> where
C: IntoColor<S>,
S: Float,
[src]
C: IntoColor<S>,
S: Float,
Auto Trait Implementations
impl<C, T> Send for Alpha<C, T> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<C, T> Sync for Alpha<C, T> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,
impl<T> DeviceOwned for T where
T: Deref,
<T as Deref>::Target: DeviceOwned,
[src]
T: Deref,
<T as Deref>::Target: DeviceOwned,
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> SafeBorrow<T> for T
[src]
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.