I checked manim's method. I tried using NumberPlane and 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()
that's all.
Recommended Posts