@property
    def palette(self):
        if self.colours < 256:
            # Use the ANSI colour set.
            return self._8_palette
        else:
            return self._256_palette
:return: A palette compatible with the PIL.
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/Screen.palette