From 9da74cb6572560f426d2ff0bdbc40d6d760f7f6e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 18 Jun 2019 20:40:41 -0700 Subject: [PATCH] Beginning chapter 4 animations --- active_projects/ode/all_part4_scenes.py | 12 ++++++++++ active_projects/ode/part4/staging.py | 30 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 active_projects/ode/all_part4_scenes.py create mode 100644 active_projects/ode/part4/staging.py diff --git a/active_projects/ode/all_part4_scenes.py b/active_projects/ode/all_part4_scenes.py new file mode 100644 index 00000000..f548a917 --- /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 00000000..4d6c5e44 --- /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