Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Change big_ol_pile_of_imports to manimlib.imports

Grant Sanderson91b3abae4a4d
diff --git a/name_animations.py b/name_animations.py
new file mode 100644
index 000000000..b96c00e9d
--- /dev/null
+++ b/name_animations.py
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+from manimlib.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