AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AColor Class Reference

Represents a 4-component floating point color (RGBA). More...

#include <AUI/Common/AColor.h>

Detailed Description

Constructor & Destructor Documentation

◆ AColor()

AColor::AColor ( unsigned int color)
inlineconstexpr
Parameters
colorinteger representing color in 0xRRGGBBAA

AColor(0xff0000ff) will represent opaque bright red

Member Function Documentation

> All members, including inherited

◆ fromAARRGGBB()

static constexpr AColor AColor::fromAARRGGBB ( unsigned int color)
inlinestaticconstexpr
Parameters
colorinteger representing color in 0xAARRGGBB

AColor(0xff0000ff) will represent opaque bright blue

◆ fromRRGGBB()

static constexpr AColor AColor::fromRRGGBB ( unsigned int color)
inlinestaticconstexpr
Parameters
colorinteger representing color in 0xRRGGBB

AColor(0x00ff00) will represent opaque bright green

◆ mul()

AColor AColor::mul ( float d) const
inlineconstexpr
Parameters
dmultiplier
Returns
multiplied color