def setformat(self, format):
        u"""
        
        The ``c.setformat()`` change the output format - if ``format`` is either
        ``cmyk``,``rgb`` or ``hex``
        
        """
        if format in ('cmyk', 'rgb', 'hex', 'uhex'):
            return Color(_hls2colorformat(self.h, self.l, self.s, self.format), format=format)
        else:
            raise ValueError('''[Color] Cannot set color format. "%s" doesn't exist.''' % format)
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/toolbox/coloring.py/Color.setformat/original