[][src]Struct tincture::Oklab

pub struct Oklab {
    pub l: f32,
    pub a: f32,
    pub b: f32,
}

A color from the Oklab color space.

Fields

l: f32

Lightness. 0 is complete black, 1 is the brightest white.

a: f32

Green vs red. -1 is green, 1 is red.

b: f32

Blue vs yellow. -1 is blue, 1 is yellow.

Trait Implementations

impl Clone for Oklab[src]

impl ColorSpace for Oklab[src]

impl Copy for Oklab[src]

impl CoreColorSpace for Oklab[src]

impl Debug for Oklab[src]

impl From<Oklab> for Oklch[src]

impl From<Oklch> for Oklab[src]

impl PartialEq<Oklab> for Oklab[src]

impl PartialOrd<Oklab> for Oklab[src]

impl StructuralPartialEq for Oklab[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.