manim/scripts/template_twitter_post.py
kolibril13 c05ee3e63c
Add examples to animation creation (#820)
* added creation animation

* added further animation

* added further animation + docstring template

* added further examples

* black

* one more update

* one more update

* one more update

* one more update

* one more update become

* hope that this will fix the build

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* updated templates

* small fix

* tests

* Apply suggestions from code review

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>

* Update README.md

* merged master and typo in README.md

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: Leo Torres <dleonardotn@gmail.com>
2020-12-13 12:41:06 +01:00

17 lines
524 B
Python

from manim import *
import pkg_resources
version_num = pkg_resources.get_distribution("manim").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))