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


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