ClassColor
Index
Subclasses
Constructors
Member Functions

ClassColor

The color class to hold a RGBA color value.

Subclasses

empathy::life_event::CWave
empathy::life_event::MathWave
empathy::life_event::CWave_data

Constructors

Color ( GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a )
r
g
b
a
Color ( Color * color )
color

Member Functions

  • virtual
void
decodeJson ( std::__cxx11::string key,
cJSON * value )

Apply color from JSON.

key
value
GLfloat
getA ( )
return
GLfloat
getB ( )
return
GLfloat
getG ( )
return
GLfloat
getR ( )
return
  • static
mix ( Color * color1,
Color * color2,
GLfloat ratio )
color1
color2
ratio
return
void
setA ( GLfloat a )
a
void
setB ( GLfloat b )
b
void
setColor ( GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a )
r
g
b
a
void
setColor ( Color * color )

Something like a "pointer" copy constructor.

color
void
setG ( GLfloat g )
g
void
setR ( GLfloat r )
r
std::__cxx11::string
toString ( )
return