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: 200602002 Last Updated: 20/6/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 105

Numeric 19

Programming

Web 283

Unicode 494

HTML 65

CSS 58

ASP.NET 66

OS 389

DeskTop 7

Python 17

Knowledge

Mathematics

Formulas 8

Algebra 25

Number Theory 206

Trigonometry 18

Geometry 18

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