@staticmethod<EOL><INDENT>def _rgb_to_rgbw(color):<DEDENT>
<EOL>max_value = max(color)<EOL>if max_value == <NUM_LIT:0>:<EOL><INDENT>return [<NUM_LIT:0>] * <NUM_LIT:4><EOL><DEDENT>multiplier = <NUM_LIT:255> / max_value<EOL>hue_red = color.R * multiplier<EOL>hue_green = color.G * multiplier<EOL>hue_blue = color.B * multiplier<EOL>max_hue = max(hue_red, hue_green, hue_blue)<EOL>min_hue = min(hue_red, hue_green, hue_blue)<EOL>luminance = ((max_hue + min_hue) / <NUM_LIT:2> - <NUM_LIT>) * <NUM_LIT:2> / multiplier<EOL>r = max(<NUM_LIT:0>, min(<NUM_LIT:255>, int(color.R - luminance)))<EOL>g = max(<NUM_LIT:0>, min(<NUM_LIT:255>, int(color.G - luminance)))<EOL>b = max(<NUM_LIT:0>, min(<NUM_LIT:255>, int(color.B - luminance)))<EOL>w = max(<NUM_LIT:0>, min(<NUM_LIT:255>, int(luminance)))<EOL>return [r, g, b, w]<EOL>
Convert a RGB color to a RGBW color.

:param color: The RGB color.
:return: The RGBW color.