import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('แดงขึ้น',color='#11ff33',size=4)
self.play(
text.animate.set_color('#ff0000'),
run_time=1.5
)
self.wait(0.5)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('เขียวขึ้น',color='#aa44ff',size=4)
self.play(
mnm.FadeToColor(text,'#00ff00'),
run_time=1.5
)
self.wait(0.5)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('เลือนราง\n\nจนเกือบหายไป',color='#d8d9ff',size=3)
self.add(text)
self.play(
text.animate.set_opacity(0.1),
run_time=1.5,
lag_ratio=0.5
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('เลือนราง\n\nลงนิดนึง',color='#d8fff6',size=3)
self.add(text)
self.play(
text.animate.fade(0.15),
run_time=1.5,
lag_ratio=0.5
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text1 = mnm.Text('แดงกลายเป็นฟ้า',size=2,color='#ff3333')
text2 = mnm.Text('ฟ้า',size=4,color='#33ffff')
vg = mnm.VGroup(text1,text2)
vg.arrange(mnm.UP)
self.add(vg)
self.play(
text1.animate.match_color(text2),
run_time=1.5,
lag_ratio=0.9
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('ไล่สีจากแดง\n\nไปเขียว',color='#000033',size=3)
self.add(text)
self.play(
text.animate.set_color_by_gradient('#ff0000','#00ff00'),
run_time=1.5
)
self.wait(0.5)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('oooooooo\noooooooo\noooooooo\noooooooo',color='#000033',size=3)
text.set_color_by_gradient('#ff0000','#00ff00','#0000ff')
self.add(text)
self.play(
text.animate.set_color_by_gradient('#00ffff','#ff00ff','#ffff00'),
run_time=1.5,
lag_ratio=0.8
)
ติดตามอัปเดตของบล็อกได้ที่แฟนเพจ