Color specialization storing 16-bit RGB colors. More...
#include <color.h>
Public Types | |
typedef uint16_t | PackedType |
16-bit RGB. From high to low: RRRRR GGGGGG BBBBB. |
Public Member Functions | |
Color () | |
Initializes all channels to zero. | |
Color (uint8_t const red, uint8_t const green, uint8_t const blue) | |
Constructs a color from the given channel values (all 0-255). | |
Color (Color const &other) | |
template<int t_OtherColorFormat> | |
Color (Color< t_OtherColorFormat > const &other) | |
Color const & | operator= (Color const &other) |
template<int t_OtherColorFormat> | |
Color const & | operator= (Color< t_OtherColorFormat > const &other) |
PackedType | Packed () const |
Returns packed 16-bit RGB. From high to low: RRRRR GGGGGG BBBBB. | |
uint8_t | Red () const |
Returns red channel (0-255). | |
uint8_t | Green () const |
Returns green channel (0-255). | |
uint8_t | Blue () const |
Returns blue channel (0-255). | |
uint8_t | Alpha () const |
Returns alpha channel (0-255). |
Color specialization storing 16-bit RGB colors.