相关文章推荐
傻傻的甘蔗  ·  System.Runtime.Interop ...·  1 年前    · 
文武双全的松树  ·  sudo apt-get install ...·  1 年前    · 
爱笑的瀑布  ·  日志报错 PAM Permission ...·  2 年前    · 
飘逸的口罩  ·  Strings.Asc 方法 ...·  2 年前    · 

A community maintained Python library for creating mathematical animations.

Examples

class ContinuousMotion(Scene):
    def construct(self):
        func = lambda pos: np.sin(pos[0] / 2) * UR + np.cos(pos[1] / 2) * LEFT
        stream_lines = StreamLines(func, stroke_width=2, max_anchors_per_line=30)
        self.add(stream_lines)
        stream_lines.start_animation(warm_up=False, flow_speed=1.5)
        self.wait(stream_lines.virtual_time / stream_lines.flow_speed)