mirror of https://github.com/AxioDL/zeus.git
Forgot to pass alpha
This commit is contained in:
parent
2a3401ade9
commit
e1fbd991b6
|
@ -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((r * r + g * g + b * b) / 3)}; }
|
{ return {Math::sqrtF((r * r + g * g + b * b) / 3), a}; }
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline CColor operator+(float lhs, const CColor& rhs)
|
static inline CColor operator+(float lhs, const CColor& rhs)
|
||||||
|
|
Loading…
Reference in New Issue