Underp toGrayscale

This commit is contained in:
Phillip Stephens 2016-01-05 14:55:44 -08:00
parent 0ec87939d2
commit 2a3401ade9
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ public:
void toHSL(float& h, float& s, float& l); void toHSL(float& h, float& s, float& l);
CColor toGrayscale() CColor toGrayscale()
{ return {Math::sqrtF(magSquared() / 3)}; } { return {Math::sqrtF((r * r + g * g + b * b) / 3)}; }
}; };
static inline CColor operator+(float lhs, const CColor& rhs) static inline CColor operator+(float lhs, const CColor& rhs)