|
hueplusplus 1.2.0
|
Triangle of representable colors in CIE. More...
#include <hueplusplus/ColorUnits.h>
Collaboration diagram for hueplusplus::ColorGamut:Public Member Functions | |
| bool | contains (const XY &xy) const |
Check whether xy is representable. | |
| XY | corrected (const XY &xy) const |
Correct xy to closest representable color. | |
Public Attributes | |
| XY | redCorner |
| Red corner in the color triangle. | |
| XY | greenCorner |
| Green corner in the color triangle. | |
| XY | blueCorner |
| Blue corner in the color triangle. | |
Triangle of representable colors in CIE.
| bool hueplusplus::ColorGamut::contains | ( | const XY & | xy | ) | const |
Check whether xy is representable.
Correct xy to closest representable color.
xy if it is in the triangle, otherwise the closest point on the border. | XY hueplusplus::ColorGamut::blueCorner |
Blue corner in the color triangle.
| XY hueplusplus::ColorGamut::greenCorner |
Green corner in the color triangle.
| XY hueplusplus::ColorGamut::redCorner |
Red corner in the color triangle.