def _index_to_ansi_values(self, index):
if self.__class__.__name__[<NUM_LIT:0>] == '<STR_LIT:F>':   <EOL><INDENT>if index < <NUM_LIT:8>:<EOL><INDENT>index += ANSI_FG_LO_BASE<EOL><DEDENT>else:<EOL><INDENT>index += (ANSI_FG_HI_BASE - <NUM_LIT:8>)  <EOL><DEDENT><DEDENT>else:                                   <EOL><INDENT>if index < <NUM_LIT:8>:<EOL><INDENT>index += ANSI_BG_LO_BASE<EOL><DEDENT>else:<EOL><INDENT>index += (ANSI_BG_HI_BASE - <NUM_LIT:8>)  <EOL><DEDENT><DEDENT>return [str(index)]<EOL>
Converts an palette index to the corresponding ANSI color.

            Arguments:
                index   - an int (from 0-15)
            Returns:
                index as str in a list for compatibility with values.