mirror of https://github.com/AxioDL/zeus.git
Underp toGrayscale
This commit is contained in:
parent
0ec87939d2
commit
2a3401ade9
|
@ -296,7 +296,7 @@ public:
|
|||
void toHSL(float& h, float& s, float& l);
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue