[][src]Trait tincture::Color

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

A trait that describes what behavior a color must have to interoperate with the rest of the system.

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 Color for LinearRgb[src]

impl Color for Oklab[src]

impl Color for Xyz[src]

Loading content...