#include <peak_icv/painting/peak_icv_color.hpp>
Public Member Functions | |
| constexpr | Color ()=default |
| Constructs a default Color initialized to black. | |
| constexpr | Color (uint64_t colorCodeRaw) |
| Constructs a Color from a raw 64-bit color code containing RGB values. | |
| constexpr | Color (uint16_t red, uint16_t green, uint16_t blue) |
| Constructs a Color from separate red, green, and blue values. | |
| constexpr | Color (uint8_t red, uint8_t green, uint8_t blue, uint8_t numBitsPerPixels) |
| Constructs a Color from separate red, green, and blue values. | |
| constexpr | Color (ColorConstant colorCode) |
| Constructs a Color from a predefined ColorConstant. | |
| constexpr uint16_t | GetRed () const |
| constexpr uint16_t | GetGreen () const |
| constexpr uint16_t | GetBlue () const |
| constexpr std::tuple< red_t, green_t, blue_t > | GetRGB () const |
| constexpr uint64_t | GetRaw () const |
| constexpr bool | operator== (const Color &rhs) const |
| constexpr bool | operator!= (const Color &rhs) const |
| constexpr bool | operator== (const ColorConstant &rhs) const |
| constexpr bool | operator!= (const ColorConstant &rhs) const |
Holds a color code composed of red, green, and blue components.
|
constexprdefault |
Constructs a default Color initialized to black.
|
inlineexplicitconstexpr |
Constructs a Color from a raw 64-bit color code containing RGB values.
The raw code uses the following layout:
| colorCodeRaw | Raw color code encoding red, green, and blue components. |
|
inlineconstexpr |
Constructs a Color from separate red, green, and blue values.
| red | Red component value. |
| green | Green component value. |
| blue | Blue component value. |
|
inlineconstexpr |
Constructs a Color from separate red, green, and blue values.
| red | Red component value. |
| green | Green component value. |
| blue | Blue component value. |
| numBitsPerPixels | Number of bits per pixel. |
|
inlineexplicitconstexpr |
Constructs a Color from a predefined ColorConstant.
| colorCode | Predefined color constant. |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |