def get_saturate(self):

        col_copy = self.copy()
        c = col_copy._c

        r, g, b, a = c
        c[0] = min(max(r, 0.0), 1.0)
        c[1] = min(max(g, 0.0), 1.0)
        c[2] = min(max(b, 0.0), 1.0)
        c[3] = min(max(a, 0.0), 1.0)

        return col_copy
Returns the saturated color as a copy.
dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/gameobjects/color.py/ColorRGBA.get_saturate