Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
RageColor Struct Reference

Public Member Functions

 RageColor (const float *f)
 
 RageColor (float r1, float g1, float b1, float a1)
 
 operator float * ()
 
 operator const float * () const
 
auto operator+= (const RageColor &other) -> RageColor &
 
auto operator-= (const RageColor &other) -> RageColor &
 
auto operator*= (const RageColor &other) -> RageColor &
 
auto operator*= (float f) -> RageColor &
 
auto operator+ (const RageColor &other) const -> RageColor
 
auto operator- (const RageColor &other) const -> RageColor
 
auto operator* (const RageColor &other) const -> RageColor
 
auto operator* (float f) const -> RageColor
 
auto operator/ (float f) const -> RageColor
 
auto operator== (const RageColor &other) const -> bool
 
auto operator!= (const RageColor &other) const -> bool
 
auto FromString (const std::string &str) -> bool
 
auto ToString () const -> std::string
 
void PushTable (lua_State *L) const
 
void FromStack (lua_State *L, int iPos)
 
void FromStackCompat (lua_State *L, int iPos)
 

Static Public Member Functions

static RageColor FromHue (float hue)
 
static RageColor Lerp (RageColor const &a, RageColor const &b, float t)
 
static auto NormalizeColorString (const std::string &sColor) -> std::string
 

Public Attributes

float r { 0 }
 
float g { 0 }
 
float b { 0 }
 
float a { 0 }
 

Friends

auto operator* (float f, const RageColor &other) -> RageColor
 

The documentation for this struct was generated from the following files: