def set_colors(self, buf):
deprecated.deprecated('<STR_LIT>')<EOL>if len(self._colors) != len(buf):<EOL><INDENT>raise IOError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(len(self._colors), len(buf)))<EOL><DEDENT>self._colors[:] = buf<EOL>
DEPRECATED: use self.color_list

Use with extreme caution!
Directly sets the internal buffer and bypasses all brightness and
rotation control buf must also be in the exact format required by the
display type.