alpha of 1 is visible, 0 is invisible. having a default of invisible
is confusing.
Color();
Color(const Color &);
//! initialize with red, green, blue, alpha
Color();
Color(const Color &);
//! initialize with red, green, blue, alpha
- Color(float r, float g, float b, float a=0.0);
+ Color(float r, float g, float b, float a=1.0);
//! set all channels simultaneously
//! set all channels simultaneously
- void set(float r, float g, float b, float a=0.0);
+ void set(float r, float g, float b, float a=1.0);
//! return an array of 4 colors (stored by class)
const float* const get() const;
void setR(float);
//! return an array of 4 colors (stored by class)
const float* const get() const;
void setR(float);