hueplusplus
1.0.0
|
Triangle of representable colors in CIE. More...
#include <hueplusplus/ColorUnits.h>
Public Member Functions | |
bool | contains (const XY &xy) const |
Check whether xy is representable. More... | |
XY | corrected (const XY &xy) const |
Correct xy to closest representable color. More... | |
Public Attributes | |
XY | redCorner |
Red corner in the color triangle. More... | |
XY | greenCorner |
Green corner in the color triangle. More... | |
XY | blueCorner |
Blue corner in the color triangle. More... | |
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.