Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Number
 Codes in Numbers.py
  Import
  Class DecimalNumber(VMobject)
   Configuration
   Functions
  Class Integer(DecimalNumber)
   Configuration
   Functions
 Source and Reference

Manim Number

The numeric form VMobject object in Manim is defined in numbers.py.

Codes in Numbers.py

Available codes defined in manimlib.mobject.numbers.py

image

Two classes, DecimalNumber, and Integer are defined.

Import

The import defined in manimlib.mobject.numbers.py:
from manimlib.constants import *
from manimlib.mobject.svg.tex_mobject import SingleStringTexMobject
from manimlib.mobject.types.vectorized_mobject import VMobject

Class DecimalNumber(VMobject)

class manimlib.mobject.numbers.DecimalNumber(VMobject)version 19Dec2019

Configuration

    CONFIG = {
        "num_decimal_places": 2,
        "include_sign": False,
        "group_with_commas": True,
        "digit_to_digit_buff": 0.05,
        "show_ellipsis": False,
        "unit": None,  # Aligned to bottom unless it starts with "^"
        "include_background_rectangle": False,
        "edge_to_fix": LEFT,
    }

Functions

Functions defined
  • def __init__(self, number=0, **kwargs)
  • def get_formatter(self, **kwargs)
  • def get_complex_formatter(self, **kwargs)
  • def set_value(self, number, **config)
  • def get_value(self)
  • def increment_value(self, delta_t=1)

Class Integer(DecimalNumber)

class manimlib.mobject.numbers.Integer(DecimalNumber)version 19Dec2019

Configuration

    CONFIG = {
        "num_decimal_places": 0,
    }

Functions

Functions defined
  • def get_value(self)

Source and Reference

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

©sideway

ID: 210700021 Last Updated: 7/21/2021 Revision: 0

IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 337

Reference 68

Computer

Hardware 154

Software

Application 207

Digitization 25

Latex 35

Manim 203

Numeric 19

Programming

Web 285

Unicode 504

HTML 65

CSS 63

SVG 9

ASP.NET 240

OS 422

DeskTop 7

Python 64

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