summaryrefslogtreecommitdiffstats
path: root/tabor/delavnica/manim/predst.py
blob: 7096bd3f8588075ee3ffca32ee860e0eb74d2f82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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