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


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 339

Reference 79

Computer

Hardware 249

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 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

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