#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( TestLayer , self ) . __init__ ( ) #NEWLINE# ( x , y ) = director . get_window_size ( ) #NEWLINE# self . text = HTMLLabel ( '<font color=red>hello <i>world</i></font>' , ( ( x // 2 ) , ( y // 2 ) ) ) #NEWLINE# self . text . do ( FadeOut ( 10 ) ) #NEWLINE# self . add ( self . text )