|
Rose
|
Red Green Blue Alpha representation of a color. More...
#include <Color.h>


Public Member Functions | |
| constexpr | RGBA (std::array< float, 4 > v) noexcept |
| Construct RGBA from a std::array of floats in range [0.0 ... 1.0]. | |
| constexpr | RGBA (uint r, uint g, uint b, uint a) noexcept |
| Construct RGBA from unsigned integer components in range [0 ... 255]. | |
| constexpr | RGBA (float r, float g, float b, float a) noexcept |
| Construct RGBA from float components in range [0.0 ... 1.0]. | |
| constexpr | RGBA (const HSVA &hsva) noexcept |
| Construct RGBA from HSVA. | |
| constexpr SDL_Color | toSdlColor () const noexcept |
| Convert this colour to an SDL_Color. | |
| constexpr float & | r () noexcept |
| Reference access to the Red value. | |
| constexpr float | r () const noexcept |
| Value access to the red value. | |
| constexpr float & | g () noexcept |
| Reference access to the Green value. | |
| constexpr float | g () const noexcept |
| Value access to the red value. | |
| constexpr float & | b () noexcept |
| Reference access to the Blue value. | |
| constexpr float | b () const noexcept |
| Value access to the Blue value. | |
| constexpr float & | a () noexcept |
| Reference access to the Alpha value. | |
| constexpr float | a () const noexcept |
| Value access to the Alpha value. | |
| constexpr RGBA | operator* (float m) const noexcept |
| Multiply a color by a constant. | |
| constexpr RGBA | brightness (float m) const noexcept |
| constexpr RGBA | operator+ (const RGBA color) const noexcept |
| Add two RGBA values together. | |
| constexpr RGBA | interpolate (const RGBA &to, float v) const noexcept |
| constexpr RGBA | withAlpha (float alpha) const noexcept |
| HSVA | toHSVA () const |
| constexpr | RGBA (std::array< float, 4 > v) noexcept |
| Construct RGBA from a std::array of floats in range [0.0 ... 1.0]. | |
| constexpr | RGBA (uint r, uint g, uint b, uint a) noexcept |
| Construct RGBA from unsigned integer components in range [0 ... 255]. | |
| constexpr | RGBA (uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept |
| Construct RGBA from uint8_t components in the range [0 ... 255]. | |
| constexpr | RGBA (float r, float g, float b, float a) noexcept |
| Construct RGBA from float components in range [0.0 ... 1.0]. | |
| constexpr | RGBA (const HSVA &hsva) noexcept |
| Construct RGBA from HSVA. | |
| constexpr SDL_Color | toSdlColor () const noexcept |
| Convert this colour to an SDL_Color. | |
| constexpr float & | r () noexcept |
| Reference access to the Red value. | |
| constexpr float | r () const noexcept |
| Value access to the red value. | |
| constexpr float & | g () noexcept |
| Reference access to the Green value. | |
| constexpr float | g () const noexcept |
| Value access to the red value. | |
| constexpr float & | b () noexcept |
| Reference access to the Blue value. | |
| constexpr float | b () const noexcept |
| Value access to the Blue value. | |
| constexpr float & | a () noexcept |
| Reference access to the Alpha value. | |
| constexpr float | a () const noexcept |
| Value access to the Alpha value. | |
| constexpr RGBA | operator* (float m) const noexcept |
| Multiply a color by a constant. | |
| constexpr RGBA | operator+ (const RGBA color) const noexcept |
| Add two RGBA values together. | |
Public Member Functions inherited from rose::color::Value | |
| constexpr | Value () noexcept |
| Constructor, initialize color to transparent black. | |
| constexpr | Value (std::array< float, 4 > v) noexcept |
| constexpr | Value () noexcept |
| Constructor, initialize color to transparent black. | |
| constexpr | Value (std::array< float, 4 > v) noexcept |
Static Public Attributes | |
| static const RGBA | TransparentBlack {RGBA{0.f,0.f,0.f,0.f}} |
| static const RGBA | OpaqueBlack {RGBA{0.f,0.f,0.f,1.f}} |
| static const RGBA | OpaqueWhite {RGBA{1.f,1.f,1.f,1.f}} |
Red Green Blue Alpha representation of a color.
1.8.13