Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Indication.py
 Codes in Indication.py
  Import
  Class FocusOn(Transform)
   Configuration
   Functions
  Class Indicate(Transform)
   Configuration
   Functions
  Class Flash(AnimationGroup)
   Configuration
   Functions
  Class CircleIndicate(Indicate)
   Configuration
   Functions
  Class ShowPassingFlash(ShowPartial)
   Configuration
   Functions
  Class ShowCreationThenDestruction(ShowPassingFlash)
   Configuration
  Class ShowCreationThenFadeOut(Succession)
   Configuration
   Functions
  Class AnimationOnSurroundingRectangle(AnimationGroup)
   Configuration
   Functions
  Class ShowPassingFlashAround(AnimationOnSurroundingRectangle)
   Configuration
  Class ShowCreationThenDestructionAround(AnimationOnSurroundingRectangle)
   Configuration
  Class ShowCreationThenFadeAround(AnimationOnSurroundingRectangle)
   Configuration
  Class ApplyWave(Homotopy)
   Configuration
   Functions
  Class WiggleOutThenIn(Animation)
   Configuration
   Functions
  Class TurnInsideOut(Transform)
   Configuration
   Functions
 Source and Reference

Manim Indication.py

Codes in Indication.py

Available codes defined in manimlib.animation.indication.py

image

Import

import numpy as np

from manimlib.constants import *
from manimlib.animation.animation import Animation
from manimlib.animation.movement import Homotopy
from manimlib.animation.composition import AnimationGroup
from manimlib.animation.composition import Succession
from manimlib.animation.creation import ShowCreation
from manimlib.animation.creation import ShowPartial
from manimlib.animation.fading import FadeOut
from manimlib.animation.transform import Transform
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.mobject.geometry import Circle
from manimlib.mobject.geometry import Dot
from manimlib.mobject.shape_matchers import SurroundingRectangle
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.mobject.geometry import Line
from manimlib.utils.bezier import interpolate
from manimlib.utils.config_ops import digest_config
from manimlib.utils.rate_functions import there_and_back
from manimlib.utils.rate_functions import wiggle

Class FocusOn(Transform)

class manimlib.animation.indication.FocusOn(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "opacity": 0.2,
        "color": GREY,
        "run_time": 2,
        "remover": True,
    }

Functions

  • def __init__(self, focus_point, **kwargs)
  • def create_target(self)
  • def create_starting_mobject(self)

Class Indicate(Transform)

class manimlib.animation.indication.Indicate(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "rate_func": there_and_back,
        "scale_factor": 1.2,
        "color": YELLOW,
    }

Functions

  • def create_target(self)

Class Flash(AnimationGroup)

class manimlib.animation.indication.Flash(AnimationGroup)version 19Dec2019

Configuration

    CONFIG = {
        "line_length": 0.2,
        "num_lines": 12,
        "flash_radius": 0.3,
        "line_stroke_width": 3,
        "run_time": 1,
    }

Functions

  • def __init__(self, point, color=YELLOW, **kwargs)
  • def create_lines(self)
  • def create_line_anims(self)

Class CircleIndicate(Indicate)

class manimlib.animation.indication.CircleIndicate(Indicate)version 19Dec2019

Configuration

    CONFIG = {
        "rate_func": there_and_back,
        "remover": True,
        "circle_config": {
            "color": YELLOW,
        },
    }

Functions

  • def __init__(self, mobject, **kwargs)
  • def get_circle(self, mobject)
  • def interpolate_mobject(self, alpha)

Class ShowPassingFlash(ShowPartial)

class manimlib.animation.indication.ShowPassingFlash(ShowPartial)version 19Dec2019

Configuration

    CONFIG = {
        "time_width": 0.1,
        "remover": True,
    }

Functions

  • def get_bounds(self, alpha)
  • def finish(self)

Class ShowCreationThenDestruction(ShowPassingFlash)

class manimlib.animation.indication.ShowCreationThenDestruction(ShowPassingFlash)version 19Dec2019

Configuration

    CONFIG = {
        "time_width": 2.0,
        "run_time": 1,
    }

Class ShowCreationThenFadeOut(Succession)

class manimlib.animation.indication.ShowCreationThenFadeOut(Succession)version 19Dec2019

Configuration

    CONFIG = {
        "remover": True,
    }

Functions

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

Class AnimationOnSurroundingRectangle(AnimationGroup)

class manimlib.animation.indication.AnimationOnSurroundingRectangle(AnimationGroup)version 19Dec2019

Configuration

    CONFIG = {
        "surrounding_rectangle_config": {},
        # Function which takes in a rectangle, and spits
        # out some animation.  Could be some animation class,
        # could be something more
        "rect_animation": Animation
    }

Functions

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

Class ShowPassingFlashAround(AnimationOnSurroundingRectangle)

class manimlib.animation.indication.ShowPassingFlashAround(AnimationOnSurroundingRectangle)version 19Dec2019

Configuration

    CONFIG = {
        "rect_animation": ShowPassingFlash
    }

Class ShowCreationThenDestructionAround(AnimationOnSurroundingRectangle)

class manimlib.animation.indication.ShowCreationThenDestructionAround(AnimationOnSurroundingRectangle)version 19Dec2019

Configuration

    CONFIG = {
        "rect_animation": ShowCreationThenDestruction
    }

Class ShowCreationThenFadeAround(AnimationOnSurroundingRectangle)

class manimlib.animation.indication.ShowCreationThenFadeAround(AnimationOnSurroundingRectangle)version 19Dec2019

Configuration

    CONFIG = {
        "rect_animation": ShowCreationThenFadeOut
    }

Class ApplyWave(Homotopy)

class manimlib.animation.indication.ApplyWave(Homotopy)version 19Dec2019

Configuration

    CONFIG = {
        "direction": UP,
        "amplitude": 0.2,
        "run_time": 1,
    }

Functions

  • def __init__(self, mobject, **kwargs)
    • def homotopy(x, y, z, t)

Class WiggleOutThenIn(Animation)

class manimlib.animation.indication.WiggleOutThenIn(Animation)version 19Dec2019

Configuration

    CONFIG = {
        "scale_value": 1.1,
        "rotation_angle": 0.01 * TAU,
        "n_wiggles": 6,
        "run_time": 2,
        "scale_about_point": None,
        "rotate_about_point": None,
    }

Functions

  • def get_scale_about_point(self)
  • def get_rotate_about_point(self)
  • def interpolate_submobject(self, submobject, starting_sumobject, alpha)

Class TurnInsideOut(Transform)

class manimlib.animation.indication.TurnInsideOut(Transform)version 19Dec2019

Configuration

    CONFIG = {
        "path_arc": TAU / 4,
    }

Functions

  • def create_target(self)

Source and Reference

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

©sideway

ID: 200800802 Last Updated: 8/8/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 25

Latex 7

Manim 115

Numeric 19

Programming

Web 283

Unicode 494

HTML 65

CSS 58

ASP.NET 149

OS 389

DeskTop 7

Python 19

Knowledge

Mathematics

Formulas 8

Algebra 25

Number Theory 206

Trigonometry 18

Geometry 21

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