|
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. | |
Public Member Functions inherited from rolmodl::RGB | |
| 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 |
Public Attributes inherited from rolmodl::RGB | |
| 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.
1.8.16