Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added a template for twitter posts (#800)

kolibril1319d0d5153214
diff --git a/scripts/twitter_post_template.py b/scripts/twitter_post_template.py
new file mode 100644
index 000000000..fd1e4f018
--- /dev/null
+++ b/scripts/twitter_post_template.py
@@ -0,0 +1,17 @@
+from manim import *
+import pkg_resources
+
+version_num = pkg_resources.get_distribution("manimce").version
+
+
+class TwitterScene(Scene):
+ def construct(self):
+ self.camera.background_color = "#ece6e2"
+ version = Tex(f"v{version_num}").to_corner(UR).set_color(BLACK)
+ self.add(version)
+ ## add twitter scene content here
+
+ banner = ManimBanner(dark_theme=False).scale(0.3).to_corner(DR)
+ self.play(FadeIn(banner))
+ self.play(banner.expand())
+ self.play(FadeOut(banner))