[][src]Struct tincture::Xyz

pub struct Xyz {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

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]

impl StructuralPartialEq for Xyz[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.