Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

mobject.py: interpolate() example: dotL and dotR names swapped (#2319)

vmiezysb126a724c883
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index a79f23cdd..81c6b83ce 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -2550,10 +2550,10 @@ class Mobject:
class DotInterpolation(Scene):
def construct(self):
- dotL = Dot(color=DARK_GREY)
- dotL.shift(2 * RIGHT)
- dotR = Dot(color=WHITE)
- dotR.shift(2 * LEFT)
+ dotR = Dot(color=DARK_GREY)
+ dotR.shift(2 * RIGHT)
+ dotL = Dot(color=WHITE)
+ dotL.shift(2 * LEFT)
dotMiddle = VMobject().interpolate(dotL, dotR, alpha=0.3)