@Override
    public int hashCode() {
        int result = alpha != null ? alpha.hashCode() : 0;
        result = 31 * result + (red != null ? red.hashCode() : 0);
        result = 31 * result + (green != null ? green.hashCode() : 0);
        result = 31 * result + (blue != null ? blue.hashCode() : 0);
        return result;
    }