Image Mobject¶
ImageMobject¶
-
class
manimlib.mobject.types.image_mobject.
ImageMobject
(filename: str, **kwargs)¶ 图片物件
初始化输入的
filename
指向了图片文件的位置-
get_shader_data
() → numpy.ndarray¶ 获取 shader 数据
-
point_to_rgb
(point: numpy.ndarray) → numpy.ndarray¶ 传入坐标,返回坐标对应点的 RGB 值
-
set_color
(color, opacity=None, recurse=None)¶ 设置颜色
-
set_opacity
(opacity: float, recurse: bool = True)¶ 设置透明度
-