equals method

bool equals(
  1. Color c
)

Implementation

bool equals(Color c) {
  return (c.r == r) && (c.g == g) && (c.b == b);
}