mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
35 lines
810 B
Python
35 lines
810 B
Python
from manim import *
|
|
|
|
|
|
class Test(Scene):
|
|
def construct(self) -> None:
|
|
s = Square()
|
|
self.add(s)
|
|
self.play(Rotate(s, PI / 2))
|
|
self.wait(7)
|
|
self.play(FadeOut(s))
|
|
sq = RegularPolygon(6)
|
|
c = Circle()
|
|
st = Star()
|
|
VGroup(sq, c, st).arrange()
|
|
self.play(
|
|
Succession(
|
|
Create(sq),
|
|
DrawBorderThenFill(c),
|
|
Create(st),
|
|
)
|
|
)
|
|
self.play(FadeOut(VGroup(*self.mobjects)))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
with tempconfig(
|
|
{
|
|
"preview": True,
|
|
"write_to_movie": False,
|
|
"disable_caching": True,
|
|
"frame_rate": 60,
|
|
"disable_caching_warning": True,
|
|
}
|
|
):
|
|
Manager(Test).render()
|