LoginSignup
0
0

More than 3 years have passed since last update.

manimの作法 その50

Last updated at Posted at 2021-02-13

概要

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

サンプルコード

from manimlib.imports import *

class test(Scene):
    def construct(self):
        plane = ComplexPlane(unit_size = 2)
        plane.add_coordinates()
        self.add(plane)
        self.t_offset = 0
        dot = Dot()
        rate = 0.25
        orbit = Circle(radius = 2)
        def around_circle(mob, dt):
            self.t_offset += (dt * rate)
            mob.move_to(orbit.point_from_proportion(self.t_offset % 1))
        dot.add_updater(around_circle)
        self.add(dot)
        self.wait(5)



生成した動画

以上。

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