0
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の作法 その15

Posted at

#概要

manimの作法、調べてみた。
Dot、使ってみた。

#サンプルコード

from manimlib.imports import *

class test(Scene):
	def construct(self):
		dots = dict()
		annos = dict()
		var_index = 0
		for x in range(-7, 8):
			for y in range(-4, 5):
				annos[f"{x}{y}"] = TexMobject(f"({x}, {y})")
				dots[f"{var_index}"] = Dot(np.array([x, y, 0]))
				var_index = var_index + 1
		for anno, dot in zip(annos.values(), dots.values()):
			self.add(anno)
			self.add(dot)
			self.wait(0.2)
			self.remove(anno)


#生成した動画

以上。

0
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
0
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?