[][src]Trait tincture::CoreColorSpace

pub trait CoreColorSpace {
    pub fn from_xyz(xyz: Xyz) -> Self;
pub fn to_xyz(self) -> Xyz; }

A color space that can be converted to any other CoreColorSpace.

Required methods

pub fn from_xyz(xyz: Xyz) -> Self[src]

Convert a color in the XYZ color space to the color space that Self represents.

pub fn to_xyz(self) -> Xyz[src]

Convert the color of Self to the XYZ color space.

Loading content...

Implementors

impl CoreColorSpace for LinearRgb[src]

impl CoreColorSpace for Oklab[src]

impl CoreColorSpace for Xyz[src]

Loading content...