1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Color: Add equality operators.

This commit is contained in:
Andreas Kling 2019-06-14 19:10:43 +02:00
parent 56cbe15033
commit ae598116f4

View file

@ -102,6 +102,16 @@ public:
RGBA32 value() const { return m_value; }
bool operator==(const Color& other) const
{
return m_value == other.m_value;
}
bool operator!=(const Color& other) const
{
return m_value != other.m_value;
}
String to_string() const;
private: