summaryrefslogtreecommitdiffstats
path: root/tabor/delavnica/manim/anim.py
diff options
context:
space:
mode:
Diffstat (limited to 'tabor/delavnica/manim/anim.py')
-rw-r--r--tabor/delavnica/manim/anim.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tabor/delavnica/manim/anim.py b/tabor/delavnica/manim/anim.py
new file mode 100644
index 0000000..eaac687
--- /dev/null
+++ b/tabor/delavnica/manim/anim.py
@@ -0,0 +1,13 @@
+
+from manim import *
+# or: from manimlib import *
+# from manim_slides import Slide
+
+class Test(Scene):
+ def construct(self):
+ circle = Circle(radius=3, color=BLUE)
+ dot = Dot()
+
+ self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)
+
+ self.play(dot.animate.move_to(ORIGIN))