mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Change crosshair style
This commit is contained in:
parent
0d66981ac7
commit
8e1fdd5a79
1 changed files with 5 additions and 3 deletions
|
@ -86,7 +86,10 @@ class InteractiveScene(Scene):
|
||||||
num_decimal_places=1,
|
num_decimal_places=1,
|
||||||
)
|
)
|
||||||
crosshair_width = 0.2
|
crosshair_width = 0.2
|
||||||
crosshair_color = GREY_A
|
crosshair_style = dict(
|
||||||
|
stroke_color=GREY_A,
|
||||||
|
stroke_width=[3, 0, 3],
|
||||||
|
)
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
self.selection = Group()
|
self.selection = Group()
|
||||||
|
@ -165,8 +168,7 @@ class InteractiveScene(Scene):
|
||||||
crosshair = VGroup(*lines)
|
crosshair = VGroup(*lines)
|
||||||
|
|
||||||
crosshair.set_width(self.crosshair_width)
|
crosshair.set_width(self.crosshair_width)
|
||||||
crosshair.set_stroke(self.crosshair_color, width=[2, 0, 2])
|
crosshair.set_style(**self.crosshair_style)
|
||||||
crosshair.insert_n_curves(1)
|
|
||||||
crosshair.set_animating_status(True)
|
crosshair.set_animating_status(True)
|
||||||
crosshair.fix_in_frame()
|
crosshair.fix_in_frame()
|
||||||
return crosshair
|
return crosshair
|
||||||
|
|
Loading…
Add table
Reference in a new issue