LoginSignup
0
0

More than 3 years have passed since last update.

manimの作法 その33

Posted at

概要

manimの作法、調べてみた。
練習問題やってみた。

練習問題

コッホ曲線を描け。

サンプルコード

class test(LSystem):
    CONFIG = {
        'rules': {
            'F': 'F+F--F+F'
        },
        'iteration': 3,
        'start_loc': (FRAME_X_RADIUS - 0.3) * LEFT + DOWN,
        'step_time': 0.1,
        'length': 0.5
    }
    def construct(self):
        self.generate()
        self.draw()
        self.wait()


生成した動画

以上。

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