Represents a 4-component floating point color (RGBA).
More...
#include <AUI/Common/AColor.h>
◆ AColor()
AColor::AColor |
( |
unsigned int | color | ) |
|
|
inlineconstexpr |
- Parameters
-
color | integer representing color in 0xRRGGBBAA |
AColor(0xff0000ff)
will represent opaque bright red
> All members, including inherited
◆ fromAARRGGBB()
static constexpr AColor AColor::fromAARRGGBB |
( |
unsigned int | color | ) |
|
|
inlinestaticconstexpr |
- Parameters
-
color | integer representing color in 0xAARRGGBB |
AColor(0xff0000ff)
will represent opaque bright blue
◆ fromRRGGBB()
static constexpr AColor AColor::fromRRGGBB |
( |
unsigned int | color | ) |
|
|
inlinestaticconstexpr |
- Parameters
-
color | integer representing color in 0xRRGGBB |
AColor(0x00ff00)
will represent opaque bright green
◆ mul()
AColor AColor::mul |
( |
float | d | ) |
const |
|
inlineconstexpr |
- Parameters
-
- Returns
- multiplied color