[−][src]Struct tincture::Xyz
A color from the CIE 1931 XYZ color space.
It is assumed that the color’s illuminant and observer are the standard D65 and 2-degree.
Fields
x: f32
A mixture of cone cell response curves chosen by the CIE to be nonnegative. Ranges from 0 to 0.95047003.
y: f32
Lightness of the color. 0 is complete black, 1 is the brightest white.
z: f32
Roughly a measure of the blueness of the color. Ranges from 0 (no blue) to 1.08883 (maxiumum blue).
Trait Implementations
impl Clone for Xyz
[src]
impl ColorSpace for Xyz
[src]
impl Copy for Xyz
[src]
impl CoreColorSpace for Xyz
[src]
impl Debug for Xyz
[src]
impl PartialEq<Xyz> for Xyz
[src]
impl PartialOrd<Xyz> for Xyz
[src]
pub fn partial_cmp(&self, other: &Xyz) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Xyz) -> bool
[src]
pub fn le(&self, other: &Xyz) -> bool
[src]
pub fn gt(&self, other: &Xyz) -> bool
[src]
pub fn ge(&self, other: &Xyz) -> bool
[src]
impl StructuralPartialEq for Xyz
[src]
Auto Trait Implementations
impl RefUnwindSafe for Xyz
[src]
impl Send for Xyz
[src]
impl Sync for Xyz
[src]
impl Unpin for Xyz
[src]
impl UnwindSafe for Xyz
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,