A community-maintained Python framework for creating mathematical animations.
Updated copy method of PiCreature clas
Grant Sanderson4d4c72bcb81b
diff --git a/topics/characters.py b/topics/characters.pyindex 373e8e438..caf70193b 100644--- a/topics/characters.py+++ b/topics/characters.py@@ -62,8 +62,6 @@ class PiCreature(SVGMobject):self.submobjects[LEFT_EYE_INDEX],self.submobjects[RIGHT_EYE_INDEX]])- self.submobjects = []- self.add(self.body, self.mouth, self.eyes, self.pupils)self.parts_named = Truedef init_colors(self):@@ -76,6 +74,10 @@ class PiCreature(SVGMobject):self.eyes.set_fill(WHITE, opacity = 1)return self+ def copy(self):+ copy_mobject = SVGMobject.copy(self)+ copy_mobject.name_parts()+ return copy_mobjectdef highlight(self, color):self.body.set_fill(color)