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

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

    :param dict setting_info: The information dict of the setting from the
                              device profile.
    :param str,tuple,list,None color: The reactive color.
    :rtype: [int, int, int]
    """
    # Disable the reactive color
    if color is None or str(color).lower() in ["off", "disable"]:
        return [0x00, 0x00, 0x00, 0x00, 0x00]

    # 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 [0x01, 0x00] + list(color)
    if is_color(color):
        return [0x01, 0x00] + list(parse_color_string(color))

    raise ValueError("Not a valid color %s" % str(color))
def process_value ( setting_info , color ) : # Disable the reactive color if color is None or str ( color ) . lower ( ) in [ "off" , "disable" ] : return [ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ] # 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 [ 0x01 , 0x00 ] + list ( color ) if is_color ( color ) : return [ 0x01 , 0x00 ] + list ( parse_color_string ( color ) ) raise ValueError ( "Not a valid color %s" % str ( color ) )