colors should default to being visible
authorDiane Trout <diane@caltech.edu>
Wed, 4 Oct 2006 01:01:09 +0000 (01:01 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 4 Oct 2006 01:01:09 +0000 (01:01 +0000)
alpha of 1 is visible, 0 is invisible. having a default of invisible
is confusing.

alg/color.hpp

index 78b13cf99db4c5b671f19667de3b6a23c98bef29..abf8b686994ff12c775ce32a3301a51dcada84ec 100644 (file)
@@ -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);