Changed: Added isGray() method to CGRBA

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 3984309945
commit 2ed7c0be88

@ -146,6 +146,14 @@ public:
*/ */
uint8 toGray() const; uint8 toGray() const;
/**
* Color is gray
*/
bool isGray() const
{
return R == G && G == B;
}
/** /**
* Get a 16 bits 565 pixel. * Get a 16 bits 565 pixel.
*/ */

Loading…
Cancel
Save