Triangles/src/helpers.cpp
Stephen Seo 25dafb26b5
All checks were successful
Run UnitTests / build-and-run-tests (push) Successful in 28s
Impl. storing color changes in history
2024-02-29 17:10:57 +09:00

13 lines
240 B
C++

#include "helpers.hpp"
bool operator==(const Color& a, const Color& b) {
return a.r == b.r
&& a.g == b.g
&& a.b == b.b
&& a.a == b.a;
}
bool operator!=(const Color& a, const Color& b) {
return !(a == b);
}