diff --git a/code/nel/include/nel/misc/rgba.h b/code/nel/include/nel/misc/rgba.h index db9ed892a..7929b4545 100644 --- a/code/nel/include/nel/misc/rgba.h +++ b/code/nel/include/nel/misc/rgba.h @@ -146,6 +146,14 @@ public: */ uint8 toGray() const; + /** + * Color is gray + */ + bool isGray() const + { + return R == G && G == B; + } + /** * Get a 16 bits 565 pixel. */