X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f61a5ebd00d4620af70c3780ba821f5af68def1c..a5853e30ca27518a7a3a33e4f97588f7b1e9ffe3:/Model/include/rgb.h?ds=inline diff --git a/Model/include/rgb.h b/Model/include/rgb.h index 0feedc2..7eebfb1 100644 --- a/Model/include/rgb.h +++ b/Model/include/rgb.h @@ -23,6 +23,10 @@ public: return (*this); } + bool operator == (const RGB &c) { + return ((r()==c.r()) && (g() == c.g()) && (b() == c.b())); + } + color r() const { return my_r; } color g() const { return my_g; } color b() const { return my_b; }