코드는
from manim import *
%%manim -qm -v WARNING SquareToCircle
class SquareToCircle(Scene):
def construct(self):
plane = ComplexPlane().add_coordinates()
dot1 = Dot()
dot2 = Dot([1,0,1])
line=Line(dot1,dot2)
def update_func(mob):
mob.put_start_and_end_on ([0,0,0],dot2)
circle_1 = Circle(radius=1.0)
self.add(dot1,dot2,line,circle_1)
self.add(plane)
self.play(MoveAlongPath(dot1, circle_1),rate_func=linear)
self.play(UpdateFromFunc(line, update_func),rate_func=linear)
오류메세지는
/usr/local/lib/python3.7/dist-packages/manim/mobject/mobject.py:1667: VisibleDeprecationWarning: Creating an ndarray from nested sequences exceeding the maximum number of dimensions of 32 is deprecated. If you mean to do this, you must specify 'dtype=object' when creating the ndarray.
target_vect = np.array(end) - np.array(start)
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-41-2556ca920d4d> in <module>
----> 1 get_ipython().run_cell_magic('manim', '-qm -v WARNING SquareToCircle', '\nclass SquareToCircle(Scene):\n def construct(self):\n plane = ComplexPlane().add_coordinates()\n dot1 = Dot()\n dot2 = Dot([1,0,1])\n line=Line(dot1,dot2)\n def update_func(mob):\n mob.put_start_and_end_on ([0,0,0],dot2)\n circle_1 = Circle(radius=1.0)\n self.add(dot1,dot2,line,circle_1)\n self.add(plane)\n \n self.play(MoveAlongPath(dot1, circle_1),rate_func=linear)\n self.play(UpdateFromFunc(line, update_func),rate_func=linear)\n \n')
13 frames
<string> in construct(self)
<string> in update_func(mob)
/usr/local/lib/python3.7/dist-packages/manim/mobject/mobject.py in __sub__(self, other)
554
555 def __sub__(self, other):
--> 556 raise NotImplementedError
557
558 def __isub__(self, other):
NotImplementedError: 도와
댓글 0