def nearest_legal(self):
return Color.from_rgb(*[max(min(v, <NUM_LIT:1.0>), <NUM_LIT:0.0>) for v in self])<EOL>
Create a new instance that is the nearest legal color to this one.

        >>> Color.from_rgb(2.0, 0.0, 3.0).nearest_legal()
        Color(1.0, 0.0, 1.0, 1.0)