mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* Future Annotations * Delete template_twitter_post.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed broken RTD Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
24 lines
508 B
Python
24 lines
508 B
Python
from __future__ import annotations
|
|
|
|
from manim import *
|
|
|
|
|
|
class SquareToCircle(Scene):
|
|
def construct(self):
|
|
square = Square()
|
|
circle = Circle()
|
|
self.play(Transform(square, circle))
|
|
|
|
|
|
class FunctionLikeTest(Scene):
|
|
def construct(self):
|
|
assert "FunctionLike" in globals()
|
|
a = FunctionLike()
|
|
self.play(FadeIn(a))
|
|
|
|
|
|
class WithAllTest(Scene):
|
|
def construct(self):
|
|
assert "WithAll" in globals()
|
|
a = WithAll()
|
|
self.play(FadeIn(a))
|