def set_color(index, color):
if OS == "<STR_LIT>" and index < <NUM_LIT:20>:<EOL><INDENT>return "<STR_LIT>" % (index, color.strip("<STR_LIT:#>"))<EOL><DEDENT>return "<STR_LIT>" % (index, color)<EOL>
Convert a hex color to a text color sequence.