mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-29 10:02:11 +00:00
* refactored logging, and logging to file feature. * cleaned up old tests * Update tests/test_logging/test_logging.py Co-authored-by: Hugues Devimeux <hugues.devimeux@gmail.com> Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com> Co-authored-by: Leo Torres <dleonardotn@gmail.com>
21 lines
612 B
Python
21 lines
612 B
Python
from manim import *
|
|
|
|
# This module is used in the CLI tests in tests_CLi.py.
|
|
|
|
|
|
class SquareToCircle(Scene):
|
|
def construct(self):
|
|
self.play(Transform(Square(), Circle()))
|
|
|
|
|
|
class WriteStuff(Scene):
|
|
def construct(self):
|
|
example_text = Tex("This is a some text", tex_to_color_map={"text": YELLOW})
|
|
example_tex = MathTex(
|
|
"\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}",
|
|
)
|
|
group = VGroup(example_text, example_tex)
|
|
group.arrange(DOWN)
|
|
group.set_width(config["frame_width"] - 2 * LARGE_BUFF)
|
|
|
|
self.play(Write(example_text))
|