mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* 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>
17 lines
524 B
Python
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))
|