[PYTHON] Manim's method 8

Overview

I checked manim's method. I tried using NumberPlane and ParametricFunction.

Sample code

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()

result

image.png

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