@classmethod
    def __call__(cls, *args):
        r, g, b, mode = cls._args_to_vectors(args)        
        M = np.maximum(r,np.maximum(g,b))
        m = np.minimum(r,np.minimum(g,b))
        C = M - m
        h = np.zeros_like(C)
        i = M == r
        h[i] = np.mod((g[i]-b[i])/C[i],6)
        i  = M == g
        h[i] = (b[i]-r[i])/C[i] + 2 
        i = M == b
        h[i] = (r[i]-g[i])/C[i] + 4
        H = h * 60
        V = M
        S = np.zeros_like(C)
        i = C != 0
        S[i] = C[i]/V[i]
        return cls._vectors_to_return(H,S,V, mode)
Convert colors.
dataset/ETHPy150Open yhat/ggplot/ggplot/utils/color.py/ColorHSVInverse.__call__