I checked manim's method. I tried the exercise "multiplication table".
https://qiita.com/maskot1977/items/c01180cc63aa67ac004e
from manimlib.imports import *
class test(Scene):
def construct(self):
for x in range(9):
for y in range(9):
A = TextMobject("{} x {} = {}".format(x + 1, y + 1, (x + 1) * (y + 1))).scale(3)
A.shift(UP * 3)
self.play(ShowCreation(A))
points = []
for i in range(x + 1):
for j in range(y + 1):
X = j * 0.5 - 3
Y = 2 - i * 0.5
points.append(Dot(point = np.array([X, Y, 0.0])))
group = VGroup(*points)
self.play(ShowIncreasingSubsets(group, run_time = 2.0))
self.wait()
self.remove(group)
self.remove(A)
https://www.youtube.com/watch?v=WhoECILZ5RY
that's all.
Recommended Posts