#NEWLINE# def demo( screen ) : #NEWLINE# #INDENT# scenes = [ ] #NEWLINE# for ( bg , name ) in [ ( Screen . COLOUR_RED , 'RED' ) , ( Screen . COLOUR_YELLOW , 'YELLOW' ) , ( Screen . COLOUR_GREEN , 'GREEN' ) , ( Screen . COLOUR_CYAN , 'CYAN' ) , ( Screen . COLOUR_BLUE , 'BLUE' ) , ( Screen . COLOUR_MAGENTA , 'MAGENTA' ) , ( Screen . COLOUR_WHITE , 'WHITE' ) ] : #NEWLINE# #INDENT# effects = [ Wipe ( screen , bg = bg , stop_frame = ( ( screen . height * 2 ) + 30 ) ) , Print ( screen , FigletText ( name , 'epic' ) , ( ( screen . height // 2 ) - 4 ) , colour = ( 7 - bg ) , bg = bg , start_frame = ( screen . height * 2 ) ) , Print ( screen , SpeechBubble ( 'Testing background colours - press X to exit' ) , ( screen . height - 5 ) , speed = 1 , transparent = False ) ] #NEWLINE# scenes . append ( Scene ( effects , 0 , clear = False ) ) #NEWLINE# #UNINDENT# screen . play ( scenes , stop_on_resize = True )