Class color

Inheritance Relationships

Base Type

Class Documentation

class color : public rcppsw::er::stringizable

A simple RGBA class representing colors as 4 8-bit numbers.

Should be used to make color usage agnostic across projects, and not tied to a particular platform, simulator, etc.

Public Functions

color(const color&) = default
inline color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha = 255)
color(void) = default
inline uint8_t alpha() const
inline void alpha(uint8_t alpha)
inline uint8_t blue() const
inline void blue(uint8_t blue)
inline uint8_t green() const
inline void green(uint8_t green)
inline bool operator!=(const color &c_color2) const
color &operator=(const color&) = default
inline bool operator==(const color &c_color2) const
inline uint8_t red() const
inline void red(uint8_t red)
virtual std::string to_str(void) const override

Return a string representation of a class.

Public Static Attributes

static const color kBLACK
static const color kBLUE
static const color kBROWN
static const color kCYAN
static const color kGRAY10
static const color kGRAY20
static const color kGRAY30
static const color kGRAY40
static const color kGRAY50
static const color kGRAY60
static const color kGRAY70
static const color kGRAY80
static const color kGRAY90
static const color kGREEN
static const color kMAGENTA
static const color kORANGE
static const color kPURPLE
static const color kRED
static const color kWHITE
static const color kYELLOW