X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f61a5ebd00d4620af70c3780ba821f5af68def1c..4ddd90e71988f16c5ea79f5de86a9fcb63973ded:/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; }