def scene2(): # define the actor x = TextBox("Yes, it Rocks!!!", "Georgia") b = GradientBox() b.fadein(1.0) # set its opacity to 0.0 x.set_opacity(0.0) # have it enter (but remember it's still not visible) x.enter() # have it become visible, but in a fancy way x.set_opacity(.5, duration=.5, func="smooth") x.set_opacity(.25, duration=.25, func="smooth") x.set_opacity(.75, duration=.5, func="smooth") x.set_opacity(.5, duration=.25, func="smooth") x.set_opacity(1.0, duration=.5, func="smooth") # wait for input pause() # have the actor leave x.fadeout(1.0)