#include <lib/nw4r/ut/color.hpp>
A 32-bit RGBA color.
Definition at line 8 of file color.hpp.
|
| Color () |
| Constructs an empty color (defaults to white).
|
|
| Color (u8 red, u8 green, u8 blue, u8 alpha) |
| Constructs a new color, given the 4 individual components.
|
|
| Color (u32 color) |
| Constructs a new color, given the 4 components.
|
|
|
union { | |
|
struct { | |
|
u8 r | |
|
u8 g | |
|
u8 b | |
|
u8 a | |
|
} | | |
|
u32 rgba | |
|
}; | | |
|
◆ Color() [1/3]
nw4r::ut::Color::Color |
( |
| ) |
|
|
inline |
Constructs an empty color (defaults to white).
Definition at line 11 of file color.hpp.
◆ Color() [2/3]
nw4r::ut::Color::Color |
( |
u8 | red, |
|
|
u8 | green, |
|
|
u8 | blue, |
|
|
u8 | alpha ) |
|
inline |
Constructs a new color, given the 4 individual components.
Definition at line 14 of file color.hpp.
◆ Color() [3/3]
nw4r::ut::Color::Color |
( |
u32 | color | ) |
|
|
inline |
Constructs a new color, given the 4 components.
Definition at line 17 of file color.hpp.