#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ShrinkGrowTransition , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# ( width , height ) = director . get_window_size ( ) #NEWLINE# self . in_scene . scale = 0.001 #NEWLINE# self . out_scene . scale = 1 #NEWLINE# self . in_scene . transform_anchor = ( ( ( 2 * width ) / 3.0 ) , ( height / 2.0 ) ) #NEWLINE# self . out_scene . transform_anchor = ( ( width / 3.0 ) , ( height / 2.0 ) ) #NEWLINE# scale_out = ScaleTo ( 0.01 , duration = self . duration ) #NEWLINE# scale_in = ScaleTo ( 1.0 , duration = self . duration ) #NEWLINE# self . in_scene . do ( Accelerate ( scale_in , 0.5 ) ) #NEWLINE# self . out_scene . do ( ( Accelerate ( scale_out , 0.5 ) + CallFunc ( self . finish ) ) )