Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Image_mobject.py
 Codes in Image_mobject.py
  Import
  Class AbstractImageMobject(Mobject)
   Configuration
   Functions
  Class ImageMobject(AbstractImageMobject)
   Configuration
   Functions
  Class ImageMobjectFromCamera(AbstractImageMobject)
   Configuration
   Functions
 Source and Reference

Manim Image_mobject.py

Codes in Image_mobject.py

Available codes defined in manimlib.mobject.type.image_mobject.py

image

Import

import numpy as np

from PIL import Image

from manimlib.constants import *
from manimlib.mobject.mobject import Mobject
from manimlib.mobject.shape_matchers import SurroundingRectangle
from manimlib.utils.bezier import interpolate
from manimlib.utils.color import color_to_int_rgb
from manimlib.utils.config_ops import digest_config
from manimlib.utils.images import get_full_raster_image_path

Class AbstractImageMobject(Mobject)

class manimlib.mobject.mobject.type.image_mobject.AbstractImageMobject(Mobject)version 19Dec2019

Configuration

    CONFIG = {
        "height": 2.0,
        "pixel_array_dtype": "uint8",
    }

Functions

  • def get_pixel_array(self)
  • def set_color(self)
    • pass
  • def reset_points(self)
  • def copy(self)

Class ImageMobject(AbstractImageMobject)

class manimlib.mobject.mobject.type.image_mobject.ImageMobject(AbstractImageMobject)version 19Dec2019

Configuration

    CONFIG = {
        "invert": False,
        "image_mode": "RGBA",
    }

Functions

  • def __init__(self, filename_or_array, **kwargs)
  • def change_to_rgba_array(self)
  • def get_pixel_array(self)
  • def set_color(self, color, alpha=None, family=True)
  • def set_opacity(self, alpha)
  • def fade(self, darkness=0.5, family=True)
  • def interpolate_color(self, mobject1, mobject2, alpha)

Class ImageMobjectFromCamera(AbstractImageMobject)

class manimlib.mobject.mobject.type.image_mobject.ImageMobjectFromCamera(AbstractImageMobject)version 19Dec2019

Configuration

    CONFIG = {
        "default_display_frame_config": {
            "stroke_width": 3,
            "stroke_color": WHITE,
            "buff": 0,
        }
    }

Functions

  • def __init__(self, camera, **kwargs)
  • def get_pixel_array(self)
  • def add_display_frame(self, **kwargs)

Source and Reference

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

©sideway

ID: 210700029 Last Updated: 7/29/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