On this page

ImageMobject

from noon import ImageMobject

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: _base.Mobject. Declared members follow; inherited and dynamically attached members are not expanded.

PNG/JPEG files or uint8 grayscale/RGB/RGBA arrays.

Pixels are immutable. Color replacement, mutable pixel-array access, other
file formats, and pixel-to-pixel morphing are not supported. Copies share
pixels but retain independent ordinary semantic object state.

ImageMobject.__init__

ImageMobject.__init__(self, filename_or_array, scale_to_resolution=1080, invert=False, image_mode='RGBA', *, resampling_algorithm=3, height=None, opacity=1.0, z_index=0.0, pixel_array_dtype='uint8', **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
filename_or_arraypositional or keywordNot annotatedNo default
scale_to_resolutionpositional or keywordNot annotated1080
invertpositional or keywordNot annotatedFalse
image_modepositional or keywordNot annotated'RGBA'
resampling_algorithmkeyword-onlyNot annotated3
heightkeyword-onlyNot annotatedNone
opacitykeyword-onlyNot annotated1.0
z_indexkeyword-onlyNot annotated0.0
pixel_array_dtypekeyword-onlyNot annotated'uint8'
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

ImageMobject.from_url

async ImageMobject.from_url(cls, url, **kwargs)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
urlpositional or keywordNot annotatedNo default
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Load an explicitly requested CORS-accessible URL before admission.

Source declaration

ImageMobject.from_blob

async ImageMobject.from_blob(cls, blob, **kwargs)

Decorators: classmethod

ParameterKindAnnotationDefault
clspositional or keywordNot annotatedNo default
blobpositional or keywordNot annotatedNo default
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Read one browser Blob before ordinary bounded PNG/JPEG preparation.

Source declaration

ImageMobject.pixel_width

ImageMobject.pixel_width(self)

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

ImageMobject.pixel_height

ImageMobject.pixel_height(self)

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

ImageMobject.set_resampling_algorithm

ImageMobject.set_resampling_algorithm(self, algorithm)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
algorithmpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

ImageMobject.fade

ImageMobject.fade(self, darkness=0.5, family=True)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
darknesspositional or keywordNot annotated0.5
familypositional or keywordNot annotatedTrue

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

ImageMobject.set_color

ImageMobject.set_color(self, *args, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
args*argsNot annotatedNo default
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

ImageMobject.get_pixel_array

ImageMobject.get_pixel_array(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration