encode a 4 RGBA component color
|
constexpr float & | r () |
|
constexpr float & | g () |
|
constexpr float & | b () |
|
constexpr float & | a () |
|
constexpr const float & | r () const |
|
constexpr const float & | g () const |
|
constexpr const float & | b () const |
|
constexpr const float & | a () const |
|
constexpr void | r (const float r) |
|
constexpr void | g (const float g) |
|
constexpr void | b (const float b) |
|
constexpr void | a (const float a) |
|
void | set (float r, float g, float b, float a) |
|
bool | operator== (const fixed_array< float, 4 > &b) const |
|
bool | operator!= (const fixed_array< float, 4 > &b) const |
|
RGBAColor | operator* (float f) const |
|
constexpr | RGBAColor () |
|
constexpr | RGBAColor (const fixed_array< float, 4 > &c) |
|
constexpr | RGBAColor (float r, float g, float b, float a) |
|
constexpr | fixed_array () |
|
constexpr | fixed_array (value_type r1) noexcept |
| Specific constructor for 1-element vectors. More...
|
|
constexpr | fixed_array (ArgsT &&... r) noexcept |
|
constexpr iterator | begin () noexcept |
|
constexpr const_iterator | begin () const noexcept |
|
constexpr const_iterator | cbegin () const noexcept |
|
constexpr iterator | end () noexcept |
|
constexpr const_iterator | end () const noexcept |
|
constexpr const_iterator | cend () const noexcept |
|
constexpr reference | operator[] (size_type i) |
|
constexpr const_reference | operator[] (size_type i) const |
|
constexpr float & | get () &noexcept |
|
constexpr const float & | get () const &noexcept |
|
constexpr float && | get () &&noexcept |
|
constexpr const float && | get () const &&noexcept |
|
constexpr reference | at (size_type i) |
|
constexpr const_reference | at (size_type i) const |
|
constexpr reference | front () |
|
constexpr const_reference | front () const |
|
constexpr reference | back () |
|
constexpr const_reference | back () const |
|
void | swap (fixed_array< float, N > &y) |
|
constexpr const float * | data () const noexcept |
|
constexpr const Array & | array () const noexcept |
| direct access to array More...
|
|
constexpr Array & | array () noexcept |
| direct access to array More...
|
|
constexpr fixed_array< float, N > & | operator= (const fixed_array< T2, N > &rhs) noexcept |
|
constexpr void | assign (const float &value) noexcept |
|
|
static RGBAColor | fromString (const std::string &str) |
|
static RGBAColor | fromFloat (float r, float g, float b, float a) |
|
static RGBAColor | fromVec4 (const fixed_array< float, 4 > &color) |
|
static RGBAColor | fromVec4 (const fixed_array< double, 4 > &color) |
|
static RGBAColor | fromHSVA (float h, float s, float v, float a) |
|
static bool | read (const std::string &str, RGBAColor &color) |
|
constexpr static const RGBAColor & | white () |
|
constexpr static const RGBAColor & | black () |
|
constexpr static const RGBAColor & | red () |
|
constexpr static const RGBAColor & | green () |
|
constexpr static const RGBAColor & | blue () |
|
constexpr static const RGBAColor & | cyan () |
|
constexpr static const RGBAColor & | magenta () |
|
constexpr static const RGBAColor & | yellow () |
|
constexpr static const RGBAColor & | gray () |
|
constexpr static const RGBAColor & | darkgray () |
|
constexpr static const RGBAColor & | lightgray () |
|
static RGBAColor | lighten (const RGBAColor &in, const SReal factor) |
| enlight a color by a given factor. More...
|
|
static constexpr size_type | size () noexcept |
|
static bool | empty () noexcept |
|
static constexpr size_type | max_size () noexcept |
|