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