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: 7/27/2020 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339new

Travel 7new

Reference 79

Computer

Hardware 251

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 431

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

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

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


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