rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
RGBA color type. Has an alpha component. More...
#include <Base.hpp>
Public Member Functions | |
constexpr | RGBA () |
Initialize as the default pure opaque black color: RGBA(0, 0, 0, 255) = #000000ff . | |
constexpr | RGBA (const uint8_t arg_r, const uint8_t arg_g, const uint8_t arg_b) |
Initialize with the given red, green, blue values and the default alpha of 255 . | |
constexpr | RGBA (const uint8_t arg_r, const uint8_t arg_g, const uint8_t arg_b, const uint8_t arg_a) |
Initialize with the given red, green, blue, and alpha values. | |
![]() | |
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 | a |
![]() | |
uint8_t | r |
uint8_t | g |
uint8_t | b |
RGBA color type. Has an alpha component.
The default color is pure opaque black: RGBA(0, 0, 0, 255)
= #000000ff
. The default alpha value is 255
.