Manim's method 17

Overview

I checked manim's method. I tried the exercise "multiplication table".

Referenced page.

https://qiita.com/maskot1977/items/c01180cc63aa67ac004e

Sample code

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)



Generated video

https://www.youtube.com/watch?v=WhoECILZ5RY

that's all.

Recommended Posts

Manim's method 7
Manim's method 13
Manim's method 2
Manim's method 18
Manim's method 17
Manim's method 5
Manim's method 3
Manim's method 15
Manim's method 11
Manim's method 16
Manim's method 20
Manim's method 10
Manim's method 9
Manim's method 6
Manim's method 21
Manim's method 4
Manim's method 8
Manim's method 14
Manim's method 22
Manim's method 19
Manim's method 12
Manim's method part 23
manim's manners
Binary method
Special method
Special method
Understand k-means method
Clustering of clustering method
Dictionary items method
[PyTorch] Installation method
N cross method
Image collection method
Regression analysis method
Gradient method implementation 1
Python-peewee connection method
Class method static method
youtube-dl update method
Monte Carlo method
Mode-Matching Method Simulation_Python
Johnson method (python)
[Python] Semi-Lagrange method