Sideway
output.to from Sideway
Draft for Information Only

Content

Manim animation.py
 Codes in Animation.py
  Import
  Constant
  Class Animation(object)
   Configuration
   Functions
 Source and Reference

Manim animation.py

Codes in Animation.py

Available codes defined in manimlib.animation.animation.py

image

Import

from copy import deepcopy

import numpy as np

from manimlib.mobject.mobject import Mobject
from manimlib.utils.config_ops import digest_config
from manimlib.utils.rate_functions import smooth

Constant

DEFAULT_ANIMATION_RUN_TIME = 1.0
DEFAULT_ANIMATION_LAG_RATIO = 0

Class Animation(object)

Animation(object) is used as a dummy animation object to specify the based configuration and functions of an animation object. class manimlib.animation.animation.Animation(object)version 19Dec2019

Configuration

    CONFIG = {
        "run_time": DEFAULT_ANIMATION_RUN_TIME,
        "rate_func": smooth,
        "name": None,
        # Does this animation add or remove a mobject form the screen
        "remover": False,
        # If 0, the animation is applied to all submobjects
        # at the same time
        # If 1, it is applied to each successively.
        # If 0 < lag_ratio < 1, its applied to each
        # with lagged start times
        "lag_ratio": DEFAULT_ANIMATION_LAG_RATIO,
        "suspend_mobject_updating": True,
    }

Functions

  • def __init__(self, mobject, **kwargs)
  • def __str__(self)
  • def begin(self)
  • def finish(self)
  • def clean_up_from_scene(self, scene)
  • def create_starting_mobject(self)
  • def get_all_mobjects(self)
  • def get_all_families_zipped(self)
  • def update_mobjects(self, dt)
  • def get_all_mobjects_to_update(self)
  • def copy(self)
  • def update_config(self, **kwargs)
  • def interpolate(self, alpha)
  • def update(self, alpha)
    • """ This method shouldn't exist, but it's here to keep many old scenes from breaking """
  • def interpolate_mobject(self, alpha)
  • def interpolate_submobject(self, submobject, starting_sumobject, alpha)
    • # Typically ipmlemented by subclass
    • pass
  • def get_sub_alpha(self, alpha, index, num_submobjects)
  • def set_run_time(self, run_time)
  • def get_run_time(self)
  • def set_rate_func(self, rate_func)
  • def get_rate_func(self)
  • def set_name(self, name)
  • def is_remover(self)

Source and Reference

https://github.com/3b1b/manim19Dec2019

©sideway

ID: 200702702 Last Updated: 27/7/2020 Revision: 0

IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 337

Reference 67

Computer

Hardware 149

Software

Application 198

Digitization 119

Numeric 19

Programming

Web 283

Unicode 494

HTML 65

CSS 58

ASP.NET 97

OS 389

DeskTop 7

Python 19

Knowledge

Mathematics

Formulas 8

Algebra 25

Number Theory 206

Trigonometry 18

Geometry 18

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Physics

Electric 27

Biology 1

Geography 1


Copyright © 2000-2020 Sideway . All rights reserved Disclaimers last modified on 06 September 2019