import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text1 = mnm.Text('พีคาชู',color='#88ffbb',size=3)
text2 = mnm.Text('ไรชู',color='#bb88ff',size=3)
self.play(
mnm.Transform(text1,text2),
run_time=2
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('อีวุย',color='#f8c991',size=1.8),
mnm.Text('เชาเวอร์ส',color='#91c6f8',size=2.2),
mnm.Text('ธันเดอร์ส',color='#f8f491',size=2.2),
mnm.Text('บูสเตอร์',color='#f8a291',size=2.2),
)
text.arrange(mnm.DOWN)
self.add(text[0])
self.play(
mnm.Transform(text[0].copy(),text[1]),
run_time=1
)
self.play(
mnm.Transform(text[0].copy(),text[2]),
run_time=1
)
self.play(
mnm.Transform(text[0].copy(),text[3]),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('เมตามอน',color='#e191f8',size=1.8),
mnm.Text('ฟรีเซอร์',color='#91c6f8',size=2.2),
mnm.Text('ธันเดอร์',color='#f8f491',size=2.2),
mnm.Text('ไฟร์',color='#f8a291',size=2.2),
)
text.arrange(mnm.DOWN)
self.add(text[0])
self.play(
mnm.Transform(text[0],text[1]),
run_time=1
)
self.play(
mnm.Transform(text[0],text[2]),
run_time=1
)
self.play(
mnm.Transform(text[0],text[3]),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('๑',color='#f6b3c9',size=4),
mnm.Text('๒',color='#beb3f6',size=4),
mnm.Text('๓',color='#b3f6cb',size=4),
mnm.Text('๔',color='#f6f4b3',size=4),
)
text.arrange_in_grid(n_cols=2)
self.add(text[0])
self.play(
mnm.ReplacementTransform(text[0],text[1]),
run_time=1
)
self.play(
mnm.ReplacementTransform(text[1],text[2]),
run_time=1
)
self.play(
mnm.ReplacementTransform(text[2],text[3]),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('๑',color='#f6b3c9',size=4),
mnm.Text('๒',color='#beb3f6',size=4),
mnm.Text('๓',color='#b3f6cb',size=4),
mnm.Text('๔',color='#f6f4b3',size=4),
)
text.arrange_in_grid(n_cols=2)
self.add(text[0])
self.play(
mnm.FadeTransform(text[0],text[1]),
run_time=1
)
self.play(
mnm.FadeTransform(text[1],text[2]),
run_time=1
)
self.play(
mnm.FadeTransform(text[2],text[3]),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text1 = mnm.Text('ยาดอน',color='#ff9ada',size=4)
text2 = mnm.Text('ยาโดรัน',color='#c09aff',size=4)
text3 = mnm.Text('ยาโดคิง',color='#ff9ab9',size=4)
text4 = mnm.Text('คิงดรา',color='#9ac2ff',size=4)
self.play(
mnm.TransformMatchingShapes(text1,text2),
run_time=1
)
self.play(
mnm.TransformMatchingShapes(text2,text3),
run_time=1
)
self.play(
mnm.TransformMatchingShapes(text3,text4),
run_time=1
)
self.wait(0.5)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('ก',color='#f6b3c9',size=5),
mnm.Text('ข',color='#beb3f6',size=5),
mnm.Text('ค',color='#b3f6cb',size=5),
mnm.Text('ง',color='#f6f4b3',size=5),
)
text.arrange_in_grid(n_cols=2)
self.add(text[0])
self.play(
mnm.Transform(text[0],text[1],path_arc=np.radians(90)),
run_time=1
)
self.play(
mnm.Transform(text[0],text[2],path_arc=np.radians(90)),
run_time=1
)
self.play(
mnm.Transform(text[0],text[3],path_arc=np.radians(90)),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('ด',color='#f6b3c9',size=5),
mnm.Text('ต',color='#beb3f6',size=5),
mnm.Text('ถ',color='#b3f6cb',size=5),
mnm.Text('ท',color='#f6f4b3',size=5),
)
text.arrange_in_grid(n_cols=2)
self.add(text[0])
self.play(
mnm.ClockwiseTransform(text[0],text[1]),
run_time=1
)
self.play(
mnm.ClockwiseTransform(text[0],text[2]),
run_time=1
)
self.play(
mnm.ClockwiseTransform(text[0],text[3]),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('บ',color='#f6b3c9',size=5),
mnm.Text('ป',color='#beb3f6',size=5),
mnm.Text('ผ',color='#b3f6cb',size=5),
mnm.Text('พ',color='#f6f4b3',size=5),
)
text.arrange_in_grid(n_cols=2)
self.add(text[0])
self.play(
mnm.CounterclockwiseTransform(text[0],text[1]),
run_time=1
)
self.play(
mnm.CounterclockwiseTransform(text[0],text[2]),
run_time=1
)
self.play(
mnm.CounterclockwiseTransform(text[0],text[3]),
run_time=1
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text1 = mnm.Text('๑',color='#d1afe6',size=7)
text2 = mnm.Text('๒',color='#afe6d7',size=7)
text3 = mnm.Text('๓',color='#d3e6af',size=7)
vg = mnm.VGroup(text1,text2,text3)
vg.arrange(mnm.RIGHT)
self.play(
mnm.CyclicReplace(text1,text2,text3),
run_time=1.5
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.VGroup(
mnm.Text('หนึ่ง',color='#e6afdc',size=2),
mnm.Text('สอง',color='#afcde6',size=2),
mnm.Text('สาม',color='#c9e6af',size=2),
mnm.Text('สี่',color='#e6c9af',size=2),
)
text.arrange_in_grid(n_cols=2)
for i in range(4):
self.play(
mnm.CyclicReplace(*text),
run_time=1
)
ติดตามอัปเดตของบล็อกได้ที่แฟนเพจ