mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
22 lines
554 B
Python
22 lines
554 B
Python
from big_ol_pile_of_manim_imports import *
|
|
from manim import Manim
|
|
|
|
|
|
manim = Manim()
|
|
|
|
circle = Circle()
|
|
square = Square()
|
|
line = Line(np.array([3,0,0]),np.array([5,0,0]))
|
|
triangle = Polygon(np.array([0,0,0]),np.array([1,1,0]),np.array([1,-1,0]))
|
|
|
|
manim.add(line)
|
|
manim.play(ShowCreation(circle))
|
|
manim.play(FadeOut(circle))
|
|
manim.play(GrowFromCenter(square))
|
|
manim.play(Transform(square,triangle))
|
|
|
|
manim.close_movie_pipe()
|
|
|
|
# mplayer -cache 8092 ffmpeg://tcp://127.0.0.1:2000?listen
|
|
# for listening the stream
|
|
# start mplayer before running this script
|