@classmethod
    def from_palette(cls, color_name):

        try:
            c = cls.__new__(cls, object)
            r, g, b = _palette[color_name]
            c._c = [r, g, b, 1.0]
            return c
        except __HOLE__:
            raise ValueError( "Unknown color name (%s)" % color_name )
dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/gameobjects/color.py/ColorRGBA.from_palette