def _negative(self):
        u"""
        
        The ``c.negativebw`` returns white Color if the color is dark, and  black if color is light.
        
        """
        v = self.r * self.bwrgb[0] + self.g * self.bwrgb[1] + self.b * self.bwrgb[2]
        if v < self.bwlevel:
            return -1
        return 1
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/toolbox/coloring.py/Color._negative/original