diff --git a/include/utils/RgbColor.h b/include/utils/RgbColor.h index 50825431..e7c0eccb 100644 --- a/include/utils/RgbColor.h +++ b/include/utils/RgbColor.h @@ -21,6 +21,10 @@ struct RgbColor static RgbColor YELLOW; static RgbColor WHITE; + inline bool operator==(const RgbColor& other) const + { + return red == other.red && green == other.green && blue == other.blue; + } }; static_assert(sizeof(RgbColor) == 3, "Incorrect size of RgbColor");