[][src]Trait tincture::ColorSpace

pub trait ColorSpace {
    pub const BLACK: Self;
    pub const WHITE: Self;

    pub fn in_bounds(self) -> bool;
}

A color space.

Associated Constants

pub const BLACK: Self[src]

The color ‘black’.

pub const WHITE: Self[src]

The color ‘white’.

Loading content...

Required methods

pub fn in_bounds(self) -> bool[src]

Checks if the color is in bounds.

Loading content...

Implementors

impl ColorSpace for LinearRgb[src]

impl ColorSpace for Oklab[src]

impl ColorSpace for Oklch[src]

impl ColorSpace for Srgb[src]

impl ColorSpace for Xyz[src]

Loading content...