rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
RGB color type. No alpha component. More...
#include <Base.hpp>
Public Member Functions | |
constexpr | RGB () |
Initialize as the default pure black color: RGB(0, 0, 0) = #000000 . | |
constexpr | RGB (const uint8_t arg_r, const uint8_t arg_g, const uint8_t arg_b) |
Initialize with the given red, green, and blue values. | |
Public Attributes | |
uint8_t | r |
uint8_t | g |
uint8_t | b |
RGB color type. No alpha component.
The default color is pure black: RGB(0, 0, 0)
= #000000
.