Better Scene mobject management

This commit is contained in:
Grant Sanderson
2016-07-19 11:07:26 -07:00
parent 889c31f590
commit a87b58a633
2 changed files with 34 additions and 12 deletions

View File

@ -16,6 +16,8 @@ class Animation(object):
"run_time" : DEFAULT_ANIMATION_RUN_TIME,
"rate_func" : smooth,
"name" : None,
#Does this animation add or remove a mobject form the screen
"remover" : False,
}
def __init__(self, mobject, **kwargs):
mobject = instantiate(mobject)
@ -63,6 +65,9 @@ class Animation(object):
#Typically ipmlemented by subclass
pass
def is_remover(self):
return self.remover
def clean_up(self):
self.update(1)