A community-maintained Python framework for creating mathematical animations.
Fourier series name animations
Grant Sanderson2d3493c3d5a5
diff --git a/active_projects/ode/name_animations.py b/active_projects/ode/name_animations.pynew file mode 100644index 000000000..83effea7a--- /dev/null+++ b/active_projects/ode/name_animations.py@@ -0,0 +1,40 @@+#!/usr/bin/env python+from big_ol_pile_of_manim_imports import *+from active_projects.ode.part2.fourier_series import FourierOfName++name_color_pairs = [++]++circle_counts = [+ # 10,+ # 25,+ 100,+]++if __name__ == "__main__":+ for name, color in name_color_pairs:+ for n_circles in circle_counts:+ try:+ first_name = name.split(" ")[0]+ scene = FourierOfName(+ name_text=name,+ name_color=color,+ n_circles=n_circles,+ file_writer_config={+ "write_to_movie": True,+ "output_directory": os.path.join(+ "patron_fourier_names",+ first_name,+ ),+ "file_name": "{}_Fouierified_{}_Separate_paths".format(+ first_name,+ n_circles+ ),+ },+ camera_config={+ "frame_rate": 24,+ },+ )+ except:+ pass