mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 02:35:22 +08:00
75% of Chapter 6
This commit is contained in:
@ -454,7 +454,13 @@ class Mobject(object):
|
||||
raise Exception("Not implemented")
|
||||
|
||||
|
||||
## Family matters
|
||||
## Family matters
|
||||
|
||||
def __getitem__(self, index):
|
||||
return self.split()[index]
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.split())
|
||||
|
||||
def split(self):
|
||||
result = [self] if len(self.points) > 0 else []
|
||||
|
Reference in New Issue
Block a user