2018-10-30 06:39:45 +03:00
|
|
|
from big_ol_pile_of_manim_imports import *
|
2018-10-30 07:37:32 +03:00
|
|
|
from manim import Manim
|
2018-10-30 06:39:45 +03:00
|
|
|
|
2018-10-30 07:37:32 +03:00
|
|
|
|
2018-10-30 09:00:51 +03:00
|
|
|
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]))
|
|
|
|
|
2018-10-30 18:25:01 +03:00
|
|
|
manim.add(line)
|
|
|
|
manim.play(ShowCreation(circle))
|
|
|
|
manim.play(FadeOut(circle))
|
|
|
|
manim.play(GrowFromCenter(square))
|
|
|
|
manim.play(Transform(square,triangle))
|
2018-10-30 09:00:51 +03:00
|
|
|
|
2018-10-30 18:25:01 +03:00
|
|
|
manim.close_movie_pipe()
|
2018-10-31 11:16:18 +03:00
|
|
|
|
|
|
|
# mplayer -cache 8092 ffmpeg://tcp://127.0.0.1:2000?listen
|
|
|
|
# for listening the stream
|
|
|
|
# start mplayer before running this script
|