A community-maintained Python framework for creating mathematical animations.
Moved where stroke_width attr is defined
Grant Sanderson3f4b17a785f6
diff --git a/mobject/mobject.py b/mobject/mobject.pyindex 0e8fa6651..72cfd33a1 100644--- a/mobject/mobject.py+++ b/mobject/mobject.py@@ -30,7 +30,6 @@ class Mobject(Container):"""CONFIG = {"color": WHITE,- "stroke_width": DEFAULT_POINT_THICKNESS,"name": None,"dim": 3,"target": None,diff --git a/mobject/types/point_cloud_mobject.py b/mobject/types/point_cloud_mobject.pyindex b2b9863a0..7b9d329d5 100644--- a/mobject/types/point_cloud_mobject.py+++ b/mobject/types/point_cloud_mobject.py@@ -12,6 +12,10 @@ from utils.iterables import stretch_array_to_lengthclass PMobject(Mobject):+ CONFIG = {+ "stroke_width": DEFAULT_POINT_THICKNESS,+ }+def init_points(self):self.rgbas = np.zeros((0, 4))self.points = np.zeros((0, 3))diff --git a/mobject/types/vectorized_mobject.py b/mobject/types/vectorized_mobject.pyindex 92ddf402a..1290bc78d 100644--- a/mobject/types/vectorized_mobject.py+++ b/mobject/types/vectorized_mobject.py@@ -18,6 +18,7 @@ class VMobject(Mobject):"fill_color": None,"fill_opacity": 0.0,"stroke_color": None,+ "stroke_width": DEFAULT_POINT_THICKNESS,# Indicates that it will not be displayed, but# that it should count in parent mobject's path"is_subpath": False,