@Override
    public boolean equals(Object other) {
        if (other instanceof Color) {
            Color o = (Color) other;
            return ((o.r == r) && (o.g == g) && (o.b == b) && (o.a == a));
        }
        return false;
    }