From: Diane Trout Date: Wed, 4 Oct 2006 01:01:09 +0000 (+0000) Subject: colors should default to being visible X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=c678921dfb1bc20414327a96b2dec39239eda205 colors should default to being visible alpha of 1 is visible, 0 is invisible. having a default of invisible is confusing. --- diff --git a/alg/color.hpp b/alg/color.hpp index 78b13cf..abf8b68 100644 --- a/alg/color.hpp +++ b/alg/color.hpp @@ -14,10 +14,10 @@ public: 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 - 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);