Moved where stroke_width attr is defined

This commit is contained in:
Grant Sanderson
2018-05-07 13:37:29 -07:00
parent 99d119e1f6
commit 3f4b17a785
3 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,6 @@ class Mobject(Container):
"""
CONFIG = {
"color": WHITE,
"stroke_width": DEFAULT_POINT_THICKNESS,
"name": None,
"dim": 3,
"target": None,

View File

@ -12,6 +12,10 @@ from utils.iterables import stretch_array_to_length
class PMobject(Mobject):
CONFIG = {
"stroke_width": DEFAULT_POINT_THICKNESS,
}
def init_points(self):
self.rgbas = np.zeros((0, 4))
self.points = np.zeros((0, 3))

View File

@ -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,