mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
Moved where stroke_width attr is defined
This commit is contained in:
@ -30,7 +30,6 @@ class Mobject(Container):
|
||||
"""
|
||||
CONFIG = {
|
||||
"color": WHITE,
|
||||
"stroke_width": DEFAULT_POINT_THICKNESS,
|
||||
"name": None,
|
||||
"dim": 3,
|
||||
"target": None,
|
||||
|
@ -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))
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user