|
HikoGUI
A low latency retained GUI
|
#include <hikogui/color/color.hpp>
Friends | |
| constexpr friend bool | operator== (color const &lhs, color const &rhs) noexcept |
| constexpr friend color | operator* (color const &lhs, color const &rhs) noexcept |
| constexpr friend color | composit (color const &lhs, color const &rhs) noexcept |
| constexpr friend color | desaturate (color const &rhs) noexcept |
| constexpr friend color | operator* (matrix3 const &lhs, color const &rhs) noexcept |
| Transform a color by a color matrix. | |
This is a RGBA floating point color.
The color can be converted between different color spaces using the matrix-class.
But in most cases in the application and hikogui library this color would be in the scRGBA color space. This color space is compatible with the sRGB standard IEC 61966-2-1:1999.
scRGB details:
scRGBA details:
Transform a color by a color matrix.
The alpha value is not included in the transformation and copied from the input.
| lhs | The 3x3 color transformation matrix to use. |
| rhs | The color to be transformed. |