HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends
tt::color Class Reference

#include <ttauri/color/color.hpp>

Public Member Functions

constexpr color (color const &) noexcept=default
 
constexpr color (color &&) noexcept=default
 
constexpr coloroperator= (color const &) noexcept=default
 
constexpr coloroperator= (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
 

Static Public Member Functions

static constexpr color transparent () 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
 

Detailed Description

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.


The documentation for this class was generated from the following file: