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

Posted at

#概要

manimの作法、調べてみた。
NumberPlane と ParametricFunction、使ってみた。

#サンプルコード

from manimlib.imports import *

def lissajous_curve_func(t):
	return np.array((np.sin(2 * t) * 3, np.sin(3 * t) * 3, 0))

class test(Scene):
	def construct(self):
		grid = NumberPlane()
		self.add(grid)
		func = ParametricFunction(lissajous_curve_func, t_max = TAU, fill_opacity = 0)
		#dot = Dot()
		#self.add(dot)
		self.add(func)
		self.wait()

#結果

image.png

以上。

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?