Namespace color::fix

TOC

Description

In some situations color component value might be different than what is considered normal.
Functions in this space will fix those inconsistency.

List:

Name
integrity
Declaration
template< typename category_name >
  void integrity( ::color::model<category_name> & m );
Description
If color component or components satisfied some condition that color instance makes invalid.
Example:
Hue value of color::hsv< double > can be set to be larger than 360 or smaller than 0.
At least one of component, except key, of CMYK
model has to be zero.

Name
overburn
Declaration
template< typename category_name >
  void overburn( ::color::model<category_name> & m );
Description
Value of some component is out of range but color is still vallid and it pass integrity check.
Example
Red value of color::rgb< double > can goes beyond 1.

Name
unique
Declaration
template< typename category_name >
  void unique( ::color::model<category_name> & m );
Description
Some models allows several different combinations of component values which essential the same color
Example
Saturation component is HSV/HSL is equal to zero. What ever values of the other components the same color is presented.