Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Shape Matcher
 Codes in Shape_matchers.py
  Import
  Class SurroundingRectangle(Rectangle)
   Configuration
   Functions
  Class BackgroundRectangle(SurroundingRectangle)
   Configuration
   Functions
  Class Cross(VGroup)
   Configuration
   Functions
  Class Underline(Line)
   Configuration
   Functions
 Source and Reference

Manim Shape Matcher

The shape matcher VMobject object in Manim is defined in shape_matchers.py.

Codes in Shape_matchers.py

Available codes defined in manimlib.mobject.shape_matchers.py

image

Four classes, SurroundingRectangle(Rectangle), BackgroundRectangle(SurroundingRectangle), Cross(VGroup) and Underline(Line) are defined.

Import

from manimlib.constants import *
from manimlib.mobject.geometry import Line
from manimlib.mobject.geometry import Rectangle
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.utils.color import Color
from manimlib.utils.config_ops import digest_config

Class SurroundingRectangle(Rectangle)

class manimlib.mobject.shape_matchers.SurroundingRectangle(Rectangle)version 19Dec2019

Configuration

    CONFIG = {
        "color": YELLOW,
        "buff": SMALL_BUFF,
    }

Functions

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

Class BackgroundRectangle(SurroundingRectangle)

class manimlib.mobject.shape_matchers.BackgroundRectangle(SurroundingRectangle)version 19Dec2019

Configuration

    CONFIG = {
        "color": BLACK,
        "stroke_width": 0,
        "stroke_opacity": 0,
        "fill_opacity": 0.75,
        "buff": 0
    }

Functions

  • def __init__(self, mobject, **kwargs)
  • def pointwise_become_partial(self, mobject, a, b)
  • def set_style_data(self, stroke_color=None, stroke_width=None, fill_color=None, fill_opacity=None, family=True )
  • def get_fill_color(self)

Class Cross(VGroup)

class manimlib.mobject.shape_matchers.Cross(VGroup)version 19Dec2019

Configuration

    CONFIG = {
        "stroke_color": RED,
        "stroke_width": 6,
    }

Functions

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

Class Underline(Line)

class manimlib.mobject.shape_matchers.Underline(Line)version 19Dec2019

Configuration

    CONFIG = {
        "buff": SMALL_BUFF,
    }

Functions

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

Source and Reference

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

©sideway

ID: 210700023 Last Updated: 7/23/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 337

Reference 68

Computer

Hardware 156

Software

Application 207

Digitization 25

Latex 35

Manim 203

Numeric 19

Programming

Web 285

Unicode 504

HTML 65

CSS 65

SVG 9

ASP.NET 270

OS 422

DeskTop 7

Python 66

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 32

Coordinate Geometry 1

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-2021 Sideway . All rights reserved Disclaimers last modified on 06 September 2019