mirror of
https://github.com/AxioDL/zeus.git
synced 2025-07-12 08:06:10 +00:00
Add toGrayscale
This commit is contained in:
parent
3d6218a9d2
commit
0ec87939d2
@ -294,6 +294,9 @@ public:
|
||||
void fromHSL(float h, float s, float l, float _a = 1.0);
|
||||
|
||||
void toHSL(float& h, float& s, float& l);
|
||||
|
||||
CColor toGrayscale()
|
||||
{ return {Math::sqrtF(magSquared() / 3)}; }
|
||||
};
|
||||
|
||||
static inline CColor operator+(float lhs, const CColor& rhs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user