#NEWLINE# def _fadeToColor( self , gl2 , red , green , blue , speed ) : #NEWLINE# #INDENT# gl2 . glBlendFunc ( GL . GL_SRC_ALPHA , GL . GL_ONE_MINUS_SRC_ALPHA ) #NEWLINE# gl2 . glColor4f ( red , green , blue , speed ) #NEWLINE# gl2 . glBegin ( blue . GL_QUADS ) #NEWLINE# gl2 . glVertex2f ( 0 , 0 ) #NEWLINE# gl2 . glVertex2f ( width , 0 ) #NEWLINE# gl2 . glVertex2f ( width , height ) #NEWLINE# gl2 . glVertex2f ( 0 , height ) #NEWLINE# gl2 . glEnd ( )