[][src]Struct tincture::Oklch

pub struct Oklch {
    pub l: f32,
    pub c: f32,
    pub h: Hue,
}

A color from the polar variant of the Oklab color space.

Fields

l: f32

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

c: f32

Chroma, which is similar to (but not exactly the same as) saturation. 0 is completely colorless, 1 is the most vivid color.

h: Hue

Hue.

Trait Implementations

impl Clone for Oklch[src]

impl Copy for Oklch[src]

impl Debug for Oklch[src]

impl Default for Oklch[src]

impl From<Oklab> for Oklch[src]

impl From<Oklch> for Oklab[src]

impl PartialEq<Oklch> for Oklch[src]

impl PartialOrd<Oklch> for Oklch[src]

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