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 = {
|
CONFIG = {
|
||||||
"color": WHITE,
|
"color": WHITE,
|
||||||
"stroke_width": DEFAULT_POINT_THICKNESS,
|
|
||||||
"name": None,
|
"name": None,
|
||||||
"dim": 3,
|
"dim": 3,
|
||||||
"target": None,
|
"target": None,
|
||||||
|
@ -12,6 +12,10 @@ from utils.iterables import stretch_array_to_length
|
|||||||
|
|
||||||
|
|
||||||
class PMobject(Mobject):
|
class PMobject(Mobject):
|
||||||
|
CONFIG = {
|
||||||
|
"stroke_width": DEFAULT_POINT_THICKNESS,
|
||||||
|
}
|
||||||
|
|
||||||
def init_points(self):
|
def init_points(self):
|
||||||
self.rgbas = np.zeros((0, 4))
|
self.rgbas = np.zeros((0, 4))
|
||||||
self.points = np.zeros((0, 3))
|
self.points = np.zeros((0, 3))
|
||||||
|
@ -18,6 +18,7 @@ class VMobject(Mobject):
|
|||||||
"fill_color": None,
|
"fill_color": None,
|
||||||
"fill_opacity": 0.0,
|
"fill_opacity": 0.0,
|
||||||
"stroke_color": None,
|
"stroke_color": None,
|
||||||
|
"stroke_width": DEFAULT_POINT_THICKNESS,
|
||||||
# Indicates that it will not be displayed, but
|
# Indicates that it will not be displayed, but
|
||||||
# that it should count in parent mobject's path
|
# that it should count in parent mobject's path
|
||||||
"is_subpath": False,
|
"is_subpath": False,
|
||||||
|
Reference in New Issue
Block a user