(setting_info, color)
Called by the :class:`rivalcfg.mouse.Mouse` class when processing a
    "rgbcolor" type setting.

    :param dict setting_info: The information dict of the setting from the
                              device profile.
    :param str,tuple,list color: The color.
    :rtype: [int, int, int]
Called by the :class:`rivalcfg.mouse.Mouse` class when processing a
    "rgbcolor" type setting.
Called by the : class : rivalcfg . mouse . Mouse class when processing a rgbcolor type setting .
def process_value(setting_info, color):
    """Called by the :class:`rivalcfg.mouse.Mouse` class when processing a
    "rgbcolor" type setting.

    :param dict setting_info: The information dict of the setting from the
                              device profile.
    :param str,tuple,list color: The color.
    :rtype: [int, int, int]
    """
    # Color tuple
    if type(color) in (tuple, list):
        if len(color) != 3:
            raise ValueError("Not a valid color %s" % str(color))
        for channel in color:
            if type(channel) != int or channel < 0 or channel > 255:
                raise ValueError("Not a valid color %s" % str(color))
        return list(color)

    if is_color(color):
        return list(parse_color_string(color))

    raise ValueError("Not a valid color %s" % str(color))
def process_value ( setting_info , color ) : # Color tuple if type ( color ) in ( tuple , list ) : if len ( color ) != 3 : raise ValueError ( "Not a valid color %s" % str ( color ) ) for channel in color : if type ( channel ) != int or channel < 0 or channel > 255 : raise ValueError ( "Not a valid color %s" % str ( color ) ) return list ( color ) if is_color ( color ) : return list ( parse_color_string ( color ) ) raise ValueError ( "Not a valid color %s" % str ( color ) )