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)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
filename_or_array | positional or keyword | Not annotated | No default |
scale_to_resolution | positional or keyword | Not annotated | 1080 |
invert | positional or keyword | Not annotated | False |
image_mode | positional or keyword | Not annotated | 'RGBA' |
resampling_algorithm | keyword-only | Not annotated | 3 |
height | keyword-only | Not annotated | None |
opacity | keyword-only | Not annotated | 1.0 |
z_index | keyword-only | Not annotated | 0.0 |
pixel_array_dtype | keyword-only | Not annotated | 'uint8' |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
ImageMobject.from_url
async ImageMobject.from_url(cls, url, **kwargs)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
url | positional or keyword | Not annotated | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Load an explicitly requested CORS-accessible URL before admission.
ImageMobject.from_blob
async ImageMobject.from_blob(cls, blob, **kwargs)Decorators: classmethod
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
cls | positional or keyword | Not annotated | No default |
blob | positional or keyword | Not annotated | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Read one browser Blob before ordinary bounded PNG/JPEG preparation.
ImageMobject.pixel_width
ImageMobject.pixel_width(self)Decorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
ImageMobject.pixel_height
ImageMobject.pixel_height(self)Decorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
ImageMobject.set_resampling_algorithm
ImageMobject.set_resampling_algorithm(self, algorithm)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
algorithm | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
ImageMobject.fade
ImageMobject.fade(self, darkness=0.5, family=True)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
darkness | positional or keyword | Not annotated | 0.5 |
family | positional or keyword | Not annotated | True |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
ImageMobject.set_color
ImageMobject.set_color(self, *args, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
args | *args | Not annotated | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
ImageMobject.get_pixel_array
ImageMobject.get_pixel_array(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.