Smattering of Bell and Wave work

This commit is contained in:
Grant Sanderson
2017-09-06 20:18:19 -07:00
parent b88c669627
commit 12dcb7a3ea
6 changed files with 1016 additions and 138 deletions

View File

@ -338,6 +338,9 @@ class Mobject(object):
def scale_to_fit_height(self, height):
return self.rescale_to_fit(height, 1, stretch = False)
def scale_to_fit_depth(self, depth):
return self.rescale_to_fit(depth, 2, stretch = False)
def space_out_submobjects(self, factor = 1.5, **kwargs):
self.scale_in_place(factor)
for submob in self.submobjects: