mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Small stylistic fixes to mobject.py
This commit is contained in:
@ -139,7 +139,7 @@ class Mobject(Container):
|
||||
self.target = self.copy()
|
||||
return self.target
|
||||
|
||||
#### Transforming operations ######
|
||||
# Transforming operations
|
||||
|
||||
def apply_to_family(self, func):
|
||||
for mob in self.family_members_with_points():
|
||||
@ -249,7 +249,7 @@ class Mobject(Container):
|
||||
mob.apply_over_attr_arrays(repeat_array)
|
||||
return self
|
||||
|
||||
#### In place operations ######
|
||||
# In place operations.
|
||||
# Note, much of these are now redundant with default behavior of
|
||||
# above methods
|
||||
|
||||
@ -278,7 +278,7 @@ class Mobject(Container):
|
||||
self.rotate(TAU / 14, RIGHT + UP, **kwargs)
|
||||
return self
|
||||
|
||||
#### Positioning methods ####
|
||||
# Positioning methods
|
||||
|
||||
def center(self):
|
||||
self.shift(-self.get_center())
|
||||
@ -521,8 +521,7 @@ class Mobject(Container):
|
||||
return self
|
||||
|
||||
def set_submobject_colors_by_radial_gradient(self, center=None, radius=1, inner_color=WHITE, outer_color=BLACK):
|
||||
mobs = self.family_members_with_points()
|
||||
if center == None:
|
||||
if center is None:
|
||||
center = self.get_center()
|
||||
|
||||
for mob in self.family_members_with_points():
|
||||
@ -618,7 +617,7 @@ class Mobject(Container):
|
||||
def get_all_points(self):
|
||||
return self.get_merged_array("points")
|
||||
|
||||
### Getters ###
|
||||
# Getters
|
||||
|
||||
def get_points_defining_boundary(self):
|
||||
return self.points
|
||||
|
Reference in New Issue
Block a user