Have mobjects track family and parents more directly

This commit is contained in:
Grant Sanderson
2020-02-21 10:56:40 -08:00
parent b825b36b60
commit ea59950b2c
13 changed files with 106 additions and 79 deletions

View File

@ -153,7 +153,7 @@ class GeneralizedPascalsTriangle(VMobject):
def fill_with_n_choose_k(self):
if not hasattr(self, "coords_to_n_choose_k"):
self.generate_n_choose_k_mobs()
self.submobjects = []
self.set_submobjects([])
self.add(*[
self.coords_to_n_choose_k[n][k]
for n, k in self.coords