mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update crosshair for new path structure
This commit is contained in:
parent
86b756ab1f
commit
c0fba529d9
1 changed files with 3 additions and 3 deletions
|
@ -160,13 +160,13 @@ class InteractiveScene(Scene):
|
|||
|
||||
def get_crosshair(self):
|
||||
line = Line(LEFT, RIGHT)
|
||||
line.insert_n_curves(1)
|
||||
lines = line.replicate(2)
|
||||
lines[1].rotate(PI / 2)
|
||||
crosshair = VMobject()
|
||||
crosshair.set_points([*lines[0].get_points(), *lines[1].get_points()])
|
||||
crosshair.add_subpath(lines[0].get_points())
|
||||
crosshair.add_subpath(lines[1].get_points())
|
||||
crosshair.set_width(self.crosshair_width)
|
||||
crosshair.set_stroke(self.crosshair_color, width=[2, 0, 2, 2, 0, 2])
|
||||
crosshair.set_stroke(self.crosshair_color, width=[2, 0, 2, 0, 2, 0, 2])
|
||||
crosshair.set_animating_status(True)
|
||||
crosshair.fix_in_frame()
|
||||
return crosshair
|
||||
|
|
Loading…
Add table
Reference in a new issue