Namespace color::check
TOC
-
Description
- In some situations color component value might be different than what is considered normal.
Functions in this space will detect those inconsistency.
List
-
- Name
- integrity
- Declaration
-
template< typename category_name >
bool integrity( ::color::model<category_name> const& m );
- Description
- If color component or components satisfied some condition that color instance makes invalid.
- Note
true - everything is OK
false - integrity test fail
- 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 >
bool overburn( ::color::model<category_name> const& m );
- Description
- Value of some component is out of range but color is still vallid and it can pass integrity check.
- Note
false - There is no overburn.
true - some of the component is out of range.
- Example
- Red value of
color::rgb< double > can goes beyond 1.
- See also
- Bounds.
- Name
- unique
- Declaration
-
template< typename category_name >
bool unique( ::color::model<category_name> const& m );
- Description
- Some models allows several different combinations of component values which essential the same color
- Note
true - color is unique
false - there is other representations of this component combination
- Example
- Saturation component is HSV/HSL is equal to zero. What ever values of the other components the same color is presented.