def __init__(self, red, green, blue):
        """
        Args:
            red (int or SoftInt or tuple(args for SoftInt)):
            green (int or SoftInt or tuple(args for SoftInt)):
            blue (int or SoftInt or tuple(args for SoftInt)):

        Raises:
            TypeError: if invalid types are passed in args

        Notes:
            When initializing the soft color channels using the
            convenience option to pass a tuple of args for
            for ``SoftInt.__init__()``, keep in mind that when
            creating 1-length tuples in Python you need to add a
            comma after the first element, or Python will ignore
            the parentheses. ::

                color = SoftColor(([(0, 1), (255, 10)],),
                                  ([(0, 1), (255, 10)],),
                                  ([(0, 1), (255, 10)],))
        """
        if isinstance(red, tuple):
            try:
                self.red = SoftInt(*red)
            except Exception as exception:
                raise TypeError('Invalid tuple args for SoftInt in red, '
                                'init error: {}'.format(exception))
        else:
            self.red = red
        if isinstance(green, tuple):
            try:
                self.green = SoftInt(*green)
            except Exception as exception:
                raise TypeError('Invalid tuple args for SoftInt in green, '
                                'init error: {}'.format(exception))
        else:
            self.green = green
        if isinstance(blue, tuple):
            try:
                self.blue = SoftInt(*blue)
            except Exception as exception:
                raise TypeError('Invalid tuple args for SoftInt in blue, '
                                'init error: {}'.format(exception))
        else:
            self.blue = blue
def __init__ ( self , red , green , blue ) : if isinstance ( red , tuple ) : try : self . red = SoftInt ( * red ) except Exception as exception : raise TypeError ( 'Invalid tuple args for SoftInt in red, ' 'init error: {}' . format ( exception ) ) else : self . red = red if isinstance ( green , tuple ) : try : self . green = SoftInt ( * green ) except Exception as exception : raise TypeError ( 'Invalid tuple args for SoftInt in green, ' 'init error: {}' . format ( exception ) ) else : self . green = green if isinstance ( blue , tuple ) : try : self . blue = SoftInt ( * blue ) except Exception as exception : raise TypeError ( 'Invalid tuple args for SoftInt in blue, ' 'init error: {}' . format ( exception ) ) else : self . blue = blue
Args:
            red (int or SoftInt or tuple(args for SoftInt)):
            green (int or SoftInt or tuple(args for SoftInt)):
            blue (int or SoftInt or tuple(args for SoftInt)):

        Raises:
            TypeError: if invalid types are passed in args

        Notes:
            When initializing the soft color channels using the
            convenience option to pass a tuple of args for
            for ``SoftInt.__init__()``, keep in mind that when
            creating 1-length tuples in Python you need to add a
            comma after the first element, or Python will ignore
            the parentheses. ::

                color = SoftColor(([(0, 1), (255, 10)],),
                                  ([(0, 1), (255, 10)],),
                                  ([(0, 1), (255, 10)],))