SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
color::rgb Struct Reference

Public Member Functions

constexpr rgb (uint8_t r, uint8_t g, uint8_t b) noexcept
 
constexpr rgb (double r, double g, double b) noexcept
 
constexpr rgb (util::string_view color) noexcept
 
std::string rgb_str () const
 
std::string str () const
 
std::string hex_str () const
 
 operator std::string () const
 
constexpr rgbadjust (double v)
 
constexpr rgb adjust (double v) const
 
constexpr rgb dark (double pct=0.25) const
 
constexpr rgb light (double pct=0.25) const
 
constexpr rgb opacity (float pct=1.0) const
 
constexpr rgboperator= (util::string_view color_str)
 
constexpr rgboperator+= (rgb other)
 
constexpr rgb operator+ (rgb other) const
 

Public Attributes

uint8_t r_
 
uint8_t g_
 
uint8_t b_
 
float a_