diff options
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/color.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/math/color.cc b/src/math/color.cc index 9a07b7c..05f3b4c 100644 --- a/src/math/color.cc +++ b/src/math/color.cc @@ -91,7 +91,7 @@ Color operator*(float scalar, const Color& color) } std::ostream &operator<<(std::ostream &os, const Color &c) { - os << c.red() << " " << c.green() << " " << c.blue() << " " << c.alpha(); + os << c.red() << " " << c.green() << " " << c.blue(); // << " " << c.alpha(); return os; } @@ -101,7 +101,8 @@ std::istream &operator>>(std::istream & is, Color & color) is >> r; is >> g; is >> b; - is >> a; + //is >> a; + a = 1.0; color = Color(r,g,b,a); return (is); } |