Esempio n. 1
0
 def __init__(self, light_source, **kwargs):
     self.light_source = light_source
     dummy_mob = Mobject()
     ContinualAnimation.__init__(self, dummy_mob, **kwargs)
Esempio n. 2
0
 def __init__(self, animation, **kwargs):
     self.animation = animation
     ContinualAnimation.__init__(self, animation.mobject, **kwargs)
Esempio n. 3
0
 def __init__(self, value_tracker, **kwargs):
     if not isinstance(value_tracker, ValueTracker):
         raise Exception(
             "ContinualGrowValue must take a ValueTracker as its mobject")
     self.value_tracker = value_tracker
     ContinualAnimation.__init__(self, value_tracker, **kwargs)
Esempio n. 4
0
 def __init__(self, mobject, func, **kwargs):
     self.func = func
     ContinualAnimation.__init__(self, mobject, **kwargs)
Esempio n. 5
0
 def __init__(self, mobject, tracked_mobject, **kwargs):
     self.anim = MaintainPositionRelativeTo(mobject, tracked_mobject,
                                            **kwargs)
     ContinualAnimation.__init__(self, mobject, **kwargs)