pub trait ColorGamut { fn in_gamut(&self) -> bool; fn clip(&self) -> Self; }
A trait that colors implement to support gamut mapping.
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.