Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Transform.py
 Codes in Transform.py
  Import
  Class Transform(Animation)
   Configuration
   Functions
  Class ReplacementTransform(Transform)
   Configuration
  Class TransformFromCopy(Transform)
   Functions
  Class ClockwiseTransform(Transform)
   Configuration
  Class CounterclockwiseTransform(Transform)
   Configuration
  Class MoveToTarget(Transform)
   Functions
  Class ApplyMethod(Transform)
   Functions
  Class ApplyPointwiseFunction(ApplyMethod)
   Configuration
   Functions
  Class ApplyPointwiseFunctionToCenter(ApplyPointwiseFunction)
   Functions
  Class FadeToColor(ApplyMethod)
   Functions
  Class ScaleInPlace(ApplyMethod)
   Functions
  Class ShrinkToCenter(ScaleInPlace)
   Functions
  Class Restore(ApplyMethod)
   Functions
  Class ApplyFunction(Transform)
   Functions
  Class ApplyMatrix(ApplyPointwiseFunction)
   Functions
  Class ApplyComplexFunction(ApplyMethod)
   Functions
  Class CyclicReplace(Transform)
   Configuration
   Functions
  Class Swap(CyclicReplace)
   Configuration
   Functions
  Class TransformAnimations(Transform)
   Configuration
   Functions
 Source and Reference

Manim Transform.py

Codes in Transform.py

Available codes defined in manimlib.animation.transofrm.py

image

Import

import inspect

import numpy as np

from manimlib.animation.animation import Animation
from manimlib.constants import DEFAULT_POINTWISE_FUNCTION_RUN_TIME
from manimlib.constants import OUT
from manimlib.constants import DEGREES
from manimlib.mobject.mobject import Group
from manimlib.mobject.mobject import Mobject
from manimlib.utils.config_ops import digest_config
from manimlib.utils.paths import path_along_arc
from manimlib.utils.paths import straight_path
from manimlib.utils.rate_functions import smooth
from manimlib.utils.rate_functions import squish_rate_func

Class Transform(Animation)

class manimlib.animation.transform.Transform(Animation)version 19Dec2019

Configuration

    CONFIG = {
        "path_arc": 0,
        "path_arc_axis": OUT,
        "path_func": None,
        "replace_mobject_with_target_in_scene": False,
    }

Functions

  • def __init__(self, mobject, target_mobject=None, **kwargs)
  • def init_path_func(self)
  • def begin(self)
  • def create_target(self)
  • def check_target_mobject_validity(self)
  • def clean_up_from_scene(self, scene)
  • def update_config(self, **kwargs)
  • def get_all_mobjects(self)
  • def get_all_families_zipped(self)
  • def interpolate_submobject(self, submob, start, target_copy, alpha)

Class ReplacementTransform(Transform)

class manimlib.animation.transform.ReplacementTransform(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "replace_mobject_with_target_in_scene": True,
    }

Class TransformFromCopy(Transform)

class manimlib.animation.transform.TransformFromCopy(Transform)version 19Dec2019

Functions

  • def __init__(self, mobject, target_mobject, **kwargs)
  • def interpolate(self, alpha)

Class ClockwiseTransform(Transform)

class manimlib.animation.transform.ClockwiseTransform(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "path_arc": -np.pi
    }

Class CounterclockwiseTransform(Transform)

class manimlib.animation.transform.CounterclockwiseTransform(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "path_arc": np.pi
    }

Class MoveToTarget(Transform)

class manimlib.animation.transform.MoveToTarget(Transform)version 19Dec2019

Functions

  • def __init__(self, mobject, **kwargs)
  • def check_validity_of_input(self, mobject)

Class ApplyMethod(Transform)

class manimlib.animation.transform.ApplyMethod(Transform)version 19Dec2019

Functions

  • def __init__(self, method, *args, **kwargs)
  • def check_validity_of_input(self, method)
  • def create_target(self)

Class ApplyPointwiseFunction(ApplyMethod)

class manimlib.animation.transform.ApplyPointwiseFunction(ApplyMethod)version 19Dec2019

Configuration

    CONFIG = {
        "run_time": DEFAULT_POINTWISE_FUNCTION_RUN_TIME
    }

Functions

  • def __init__(self, function, mobject, **kwargs)

Class ApplyPointwiseFunctionToCenter(ApplyPointwiseFunction)

class manimlib.animation.transform.ApplyPointwiseFunctionToCenter(ApplyPointwiseFunction)version 19Dec2019

Functions

  • def __init__(self, function, mobject, **kwargs)
  • def begin(self)

Class FadeToColor(ApplyMethod)

class manimlib.animation.transform.FadeToColor(ApplyMethod)version 19Dec2019

Functions

  • def __init__(self, mobject, scale_factor, **kwargs)

Class ScaleInPlace(ApplyMethod)

class manimlib.animation.transform.ScaleInPlace(ApplyMethod)version 19Dec2019

Functions

  • def __init__(self, mobject, scale_factor, **kwargs)

Class ShrinkToCenter(ScaleInPlace)

class manimlib.animation.transform.ShrinkToCenter(ScaleInPlace)version 19Dec2019

Functions

  • def __init__(self, mobject, **kwargs)

Class Restore(ApplyMethod)

class manimlib.animation.transform.Restore(ApplyMethod)version 19Dec2019

Functions

  • def __init__(self, mobject, **kwargs)

Class ApplyFunction(Transform)

class manimlib.animation.transform.ApplyFunction(Transform)version 19Dec2019

Functions

  • def __init__(self, function, mobject, **kwargs)
  • def create_target(self)

Class ApplyMatrix(ApplyPointwiseFunction)

class manimlib.animation.transform.ApplyMatrix(ApplyPointwiseFunction)version 19Dec2019

Functions

  • def __init__(self, matrix, mobject, **kwargs)
    • def func(p)
  • def initialize_matrix(self, matrix)

Class ApplyComplexFunction(ApplyMethod)

class manimlib.animation.transform.ApplyComplexFunction(ApplyMethod)version 19Dec2019

Functions

  • def __init__(self, function, mobject, **kwargs)
  • def init_path_func(self)

Class CyclicReplace(Transform)

class manimlib.animation.transform.CyclicReplace(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "path_arc": 90 * DEGREES,
    }

Functions

  • def __init__(self, *mobjects, **kwargs)
  • def create_target(self)

Class Swap(CyclicReplace)

class manimlib.animation.transform.Swap(CyclicReplace)version 19Dec2019

Configuration

Functions

  • pass # Renaming, more understandable for two entries

Class TransformAnimations(Transform)

class manimlib.animation.transform.version 19Dec2019

Configuration

    CONFIG = {
        "rate_func": squish_rate_func(smooth)
    }

Functions

  • def __init__(self, start_anim, end_anim, **kwargs)
  • def interpolate(self, alpha)

Source and Reference

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

©sideway

ID: 210700012 Last Updated: 7/12/2021 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 339

Reference 79

Computer

Hardware 249

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 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

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