def __str__(self):
        """
        String representation of the color.
        """
        retval = self.__class__.__name__ + ' ('
        for val in self.VALUES:
            value = getattr(self, val, None)
            if value is not None:
                retval += '%s:%.4f ' % (val, getattr(self, val))
        return retval.strip() + ')'
def __str__ ( self ) : retval = self . __class__ . __name__ + ' (' for val in self . VALUES : value = getattr ( self , val , None ) if value is not None : retval += '%s:%.4f ' % ( val , getattr ( self , val ) ) return retval . strip ( ) + ')'
String representation of the color.