Finished with preliminary chapter 2 animations

This commit is contained in:
Grant Sanderson
2016-07-21 11:00:45 -07:00
parent 3ab6b8579e
commit 93acd48fe9
8 changed files with 992 additions and 80 deletions

View File

@ -93,8 +93,7 @@ class VMobject(Mobject):
def get_stroke_color(self):
try:
self.stroke_rgb[self.stroke_rgb<0] = 0
self.stroke_rgb[self.stroke_rgb>1] = 1
self.stroke_rgb = np.clip(self.stroke_rgb, 0, 1)
return Color(rgb = self.stroke_rgb)
except:
return Color(WHITE)