1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

manimの作法 その29

Posted at

#概要

manimの作法、調べてみた。
九九、やってみた2。

#サンプルコード

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))
				for i in range(y + 1):
					for j in range(x + 1):
						X = i * 0.5 - 3
						Y = 2 - j * 0.5
						self.add(Dot(point = np.array([X, Y, 0.0])))
					self.wait(0.2)
				self.wait()
				self.clear()




#生成した動画

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?