diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-02 22:06:37 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-02 22:06:37 +0200 |
commit | 491faac6191f30eab59f2f0c4a5cb2cc8cf3547f (patch) | |
tree | ac32a58f884cfa71afd9eeb74ca15352d83073ac /tabor/delavnica/manim/predst.py | |
parent | eden izmed zadnjih commitov (diff) | |
download | sola-gimb-4-master.tar sola-gimb-4-master.tar.gz sola-gimb-4-master.tar.bz2 sola-gimb-4-master.tar.lz sola-gimb-4-master.tar.xz sola-gimb-4-master.tar.zst sola-gimb-4-master.zip |
Diffstat (limited to 'tabor/delavnica/manim/predst.py')
-rw-r--r-- | tabor/delavnica/manim/predst.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tabor/delavnica/manim/predst.py b/tabor/delavnica/manim/predst.py new file mode 100644 index 0000000..7096bd3 --- /dev/null +++ b/tabor/delavnica/manim/predst.py @@ -0,0 +1,35 @@ + +from manim import * +# or: from manimlib import * +from manim_slides import Slide + +class Predst(Slide): + def construct(self): + title = VGroup( + Text("Fourierova transformacija", t2c={"Fourierova": BLUE}), + Text("Predavanje na naravoslovnem taboru Gimnazije Bežigrad", font_size=32, t2c={"naravoslovnem": GREEN}), + Text("Anton Luka Šijanec in Vasja Žorž", font_size=32, t2c={"Šijanec": YELLOW, "Žorž": YELLOW}), + Text("Medvedje Brdo, 24. junija 2023", font_size=32, t2c={"junija": RED}) + ).arrange(DOWN) + self.play(FadeIn(title)) + self.next_slide() # -------------------------------------------- + self.clear() + besedilo = VGroup( + Text("Splošno"), + BulletedList("") + ).arrange(DOWN) + self.play(besedilo) + self.next_slide() # -------------------------------------------- + self.clear() + circle = Circle(radius=3, color=BLUE) + dot = Dot() + + self.play(GrowFromCenter(circle)) + self.next_slide() # Waits user to press continue to go to the next slide + + self.start_loop() # Start loop + self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear) + self.end_loop() # This will loop until user inputs a key + + self.play(dot.animate.move_to(ORIGIN)) + self.next_slide() # Waits user to press continue to go to the next slide |