mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Add glow dot to show light in SurfaceExample
This commit is contained in:
parent
ada66ee8fb
commit
e4007f6915
1 changed files with 3 additions and 1 deletions
|
@ -630,7 +630,9 @@ class SurfaceExample(ThreeDScene):
|
|||
|
||||
self.play(FadeTransform(surface_text, light_text))
|
||||
light = self.camera.light_source
|
||||
self.add(light)
|
||||
light_dot = GlowDot(color=WHITE, radius=0.5)
|
||||
light_dot.always.move_to(light)
|
||||
self.add(light, light_dot)
|
||||
light.save_state()
|
||||
self.play(light.animate.move_to(3 * IN), run_time=5)
|
||||
self.play(light.animate.shift(10 * OUT), run_time=5)
|
||||
|
|
Loading…
Add table
Reference in a new issue