Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Beginning chapter 4 animations

Grant Sanderson9da74cb65725
diff --git a/active_projects/ode/all_part4_scenes.py b/active_projects/ode/all_part4_scenes.py
new file mode 100644
index 000000000..f548a9170
--- /dev/null
+++ b/active_projects/ode/all_part4_scenes.py
@@ -0,0 +1,12 @@
+from active_projects.ode.part4.staging import *
+
+OUTPUT_DIRECTORY = "ode/part4"
+SCENES_IN_ORDER = [
+ ComplexFourierSeriesExample,
+
+ # Oldies
+
+ # FourierSeriesIllustraiton,
+ # FourierNameIntro,
+ # CircleAnimationOfF,
+]
diff --git a/active_projects/ode/part4/staging.py b/active_projects/ode/part4/staging.py
new file mode 100644
index 000000000..4d6c5e443
--- /dev/null
+++ b/active_projects/ode/part4/staging.py
@@ -0,0 +1,30 @@
+from manimlib.imports import *
+
+from active_projects.ode.part2.fourier_series import FourierOfTrebleClef
+
+
+class ComplexFourierSeriesExample(FourierOfTrebleClef):
+ CONFIG = {
+ "file_name": "TrebleClef",
+ "run_time": 10,
+ # "n_vectors": 10,
+ "drawing_height": 5,
+ "center_point": DOWN,
+ "top_row_vector_y": 3,
+ "top_row_x_spacing": 1,
+ }
+
+ def construct(self):
+ pass
+
+ def get_path(self):
+ path = super().get_path()
+ path.set_height(self.drawing_height)
+ path.to_edge(DOWN)
+ return path
+
+ def get_top_row_vector_copies(self, vectors, max_freq=3):
+ pass
+
+ def get_top_row_vector_labels(self):
+ pass