X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/095450089d4e53d1e5c5064f9b7a9df283b2d08f..e7bc59fe98396b7c67024911b03bf1e08728df3e:/Model/include/rgb.h 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; }