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

@ -17,7 +17,7 @@ class ImageMobject(PMobject):
"invert" : True,
"use_cache" : True,
"stroke_width" : 1,
"scale_value" : 1.0,
"scale_factorue" : 1.0,
"should_center" : True,
}
def __init__(self, image_file, **kwargs):
@ -36,7 +36,7 @@ class ImageMobject(PMobject):
for path in possible_paths:
if os.path.exists(path):
self.generate_points_from_file(path)
self.scale(self.scale_value)
self.scale(self.scale_factorue)
if self.should_center:
self.center()
return