def mix(self, mix='BGR'):
        u"""
        
        The ``c.mix()`` returns a new ``Color`` object with mixed RGB channels.<br/>
        ``mix``
        
        """
        baseseq = 'rgb'
        mix = mix.lower()
        if not 'r' in mix or 'b' not in mix or mix not in 'g' or len(mix) != 3:
            raise ValueError('''[Color] Cannot mix color rgb channels as "%s".''' % mix)
        mixcolor = []
        color = _hls2rgbtuple((self.h, self.l, self.s))
        for m in mix:
            i = baseseq.index(m)
            mixcolor.append(color[i])
        return Color(_returncolorformat(tuple(mixcolor), self.format), format=self.format)
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/toolbox/coloring.py/Color.mix/swapped operands of `not in`