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