More chapter 5, plus some renaming fun

This commit is contained in:
Grant Sanderson
2016-08-02 15:50:32 -07:00
parent 6fe057c0f9
commit 4f42f62b3c
19 changed files with 162 additions and 102 deletions

View File

@ -7,7 +7,7 @@ from helpers import *
class SVGMobject(VMobject):
CONFIG = {
"initial_scale_val" : 1,
"initial_scale_factor" : 1,
"should_center" : True,
}
def __init__(self, svg_file, **kwargs):
@ -129,7 +129,7 @@ class SVGMobject(VMobject):
def move_into_position(self):
if self.should_center:
self.center()
self.scale_in_place(self.initial_scale_val)
self.scale_in_place(self.initial_scale_factor)