A few 3d updates

This commit is contained in:
Grant Sanderson
2017-02-13 18:43:55 -08:00
parent 3fb8c4b0d2
commit ef47e6e884
9 changed files with 235 additions and 173 deletions

View File

@ -64,14 +64,17 @@ class Animation(object):
#Typically ipmlemented by subclass
pass
def get_all_families_zipped(self):
def get_all_mobjects(self):
"""
Ordering must match the ording of arguments to update_submobject
"""
return zip(
self.mobject.submobject_family(),
self.starting_mobject.submobject_family()
)
return self.mobject, self.starting_mobject
def get_all_families_zipped(self):
return zip(*map(
Mobject.family_members_with_points,
self.get_all_mobjects()
))
def get_sub_alpha(self, alpha, index, num_submobjects):
if self.submobject_mode in ["lagged_start", "smoothed_lagged_start"]: