Math::Color struct

An ARGB color represented by a 32 bit integer value.

Public static variables

static const Color RED
static const Color BLUE
static const Color GREEN
static const Color WHITE
static const Color BLACK

Public static functions

static auto RGBToHSV(uint8_t r, uint8_t g, uint8_t b, float& h, float& s, float& v) -> void
static auto HSVToRGB(float h, float s, float v, uint8_t& r, uint8_t& g, uint8_t& b) -> void

Constructors, destructors, conversion operators

Color()
Color(uint32_t color)
Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a)

Public functions

auto UNNAMED(ColorUnion) -> union
auto operator==(const Color& b) const -> bool
auto operator!=(const Color& b) const -> bool
auto Color::operator+=(const Color& b) -> Color&
auto Color::operator-=(const Color& b) -> Color&
auto operator+(const Color& b) -> Color
auto operator-(const Color& b) -> Color
auto Clamp() -> void
Multiplies the brightness (value) by the given factor.