import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('หมุน',color='#9ad6c0',size=5)
self.play(
text.animate.rotate(np.radians(90)),
run_time=1.5
)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('หมุนหมุน',color='#c09ad6',size=3)
point = np.array([3,1.5,0])
self.play(
text.animate.rotate(np.radians(120),about_point=point),
run_time=1.5
)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('หมุนแนวตั้ง',color='#a9d69a',size=3)
axis = np.array([1,0,0])
self.play(
text.animate.rotate(np.radians(-135),axis=axis),
run_time=1.5
)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('หมุนแนวนอน',color='#d6a49a',size=3)
axis = np.array([0,1,0])
self.play(
text.animate.rotate(np.radians(-225),axis=axis),
run_time=1.5
)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text1 = mnm.Text('แมงหมุน',color='#d69abc',size=3)
text2 = mnm.Text('แมงมุม',color='#c6d69a',size=3)
axis = np.array([0,1,1])
self.play(
text1.animate.rotate(np.radians(-90),axis=axis),
text2.animate.rotate(np.radians(120),axis=axis),
run_time=1.5
)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('หมุนวนรอบ',color='#a89ad6',size=3)
axis = np.array([0,1,0])
self.play(
mnm.Rotating(text,np.radians(-360),axis=axis),
run_time=2
)
import manimlib as mnm
import numpy as np
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('พลิก',color='#9ad6c1',size=3)
self.play(
text.animate.flip(),
run_time=1.5
)
import manimlib as mnm
class Manimala(mnm.Scene):
def construct(self):
text = mnm.Text('บิดเฉือน',color='#d09ad6',size=4)
matr = [[1,0.5],
[0.5,1]]
self.play(
mnm.ApplyMatrix(matr,text),
run_time=1.5
)
ติดตามอัปเดตของบล็อกได้ที่แฟนเพจ