Finished recursive solution to constrained Hanoi

This commit is contained in:
Grant Sanderson
2016-11-18 21:23:52 -08:00
parent 8f06c9db1c
commit cc9aace93f
7 changed files with 640 additions and 51 deletions

View File

@ -31,9 +31,9 @@ class Arc(VMobject):
)
]
def add_tip(self):
def add_tip(self, tip_length = 0.25):
#TODO, do this a better way
arrow = Arrow(*self.points[-2:])
arrow = Arrow(*self.points[-2:], tip_length = tip_length)
self.add(arrow.split()[-1])
self.highlight(self.get_color())
return self