equal method

bool equal(
  1. Color color
)

Implementation

bool equal(Color color) {
  return r == color.r && g == color.g && b == color.b;
}