RGBA

Color stored as four uint8 components

Type: Value type

Methods

Declaration Description
void RGBA() Constructor
void RGBA(uint8 r, uint8 g, uint8 b, uint8 a = 255) Constructor
void RGBA(const Vector& in color, uint8 a = 255) Constructor
void RGBA(const RGBA& in other) Copy constructor
RGBA& opAssign(const RGBA& in other) Assignment operator
bool opEquals(const RGBA& in other) const Compare colors
string ToString(const bool withAlpha = true) const Returns a string representation of this RGBA

Properties

Declaration Description
uint8 r Red component
uint8 g Green component
uint8 b Blue component
uint8 a Alpha component