pub trait ColorGamut {
    fn in_gamut(&self) -> bool;
    fn clip(&self) -> Self;
}
Expand description

A trait that colors implement to support gamut mapping.

Required Methods

Returns whether the color is within the gamut of the color space.

Clips the color so that it is within the gamut of the color space.

Implementors