Python Pygame Fading Error When It Is In A Function Stack Overflow

Python Pygame Fading Error When It Is In A Function Stack Overflow