|
HikoGUI
A low latency retained GUI
|
#include <ttauri/color/color.hpp>
Public Member Functions | |
| constexpr | color (color const &) noexcept=default |
| constexpr | color (color &&) noexcept=default |
| constexpr color & | operator= (color const &) noexcept=default |
| constexpr color & | operator= (color &&) noexcept=default |
| constexpr | color (f32x4 other) noexcept |
| constexpr | operator f32x4 () const noexcept |
| constexpr | color (float r, float g, float b, float a=1.0) noexcept |
| constexpr float & | r () noexcept |
| constexpr float & | g () noexcept |
| constexpr float & | b () noexcept |
| constexpr float & | a () noexcept |
| constexpr float const & | r () const noexcept |
| constexpr float const & | g () const noexcept |
| constexpr float const & | b () const noexcept |
| constexpr float const & | a () const noexcept |
| constexpr bool | is_valid () const noexcept |
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 |
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 ttauri library this color would be in the esRGBA color space. This color space is compatible with the sRGB standard IEC 61966-2-1:1999.
esRGB details:
esRGBA details:
This color format is inspired by scRGB, however scRGB only describes a 12- or 16-bit integer per component encoding of RGB values between -0.5 and 7.5.
It is also inspired by Apple's extended sRGB format.