mirror of
https://github.com/3b1b/videos.git
synced 2025-09-18 21:38:53 +00:00
Small fixes
This commit is contained in:
parent
c8a5d8e1d1
commit
51a9b81842
1 changed files with 3 additions and 3 deletions
|
@ -119,10 +119,10 @@ class PiCreature(SVGMobject):
|
|||
|
||||
black = Circle(radius=pupil_r, color=BLACK)
|
||||
dot = Circle(radius=dot_r, color=WHITE)
|
||||
dot.shift(black.pfp(3 / 8) - dot.pfp(3 / 8))
|
||||
pupil = VGroup(black, dot)
|
||||
pupil.set_style(fill_opacity=1, stroke_width=0)
|
||||
pupil.move_to(ref_pupil)
|
||||
dot.shift(black.pfp(3 / 8) - dot.pfp(3 / 8))
|
||||
eye = VGroup(iris, pupil)
|
||||
eye.pupil = pupil
|
||||
eye.iris = iris
|
||||
|
@ -136,8 +136,8 @@ class PiCreature(SVGMobject):
|
|||
if isinstance(mobject, PiCreature):
|
||||
self.mode = mobject.get_mode()
|
||||
|
||||
def set_color(self, color):
|
||||
self.body.set_fill(color)
|
||||
def set_color(self, color, recurse=True):
|
||||
self.body.set_fill(color, recurse=recurse)
|
||||
return self
|
||||
|
||||
def get_color(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue