@classmethod
    def from_floats(cls, r, g, b, a=1.0):

        c = cls.__new__(cls, object)
        c._c = [r, g, b, a]
        return c
Creates a color object from float components.
dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/gameobjects/color.py/ColorRGBA.from_floats