Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Removed the ImageMobject example

MysaaJava5d26b667d42d
diff --git a/manim/mobject/types/image_mobject.py b/manim/mobject/types/image_mobject.py
index 1210541fa..1158872c5 100644
--- a/manim/mobject/types/image_mobject.py
+++ b/manim/mobject/types/image_mobject.py
@@ -51,8 +51,8 @@ class AbstractImageMobject(Mobject):
class ImageMobject(AbstractImageMobject):
"""Displays an Image from a numpy array or a file.
- Examples
- --------
+ Example
+ -------
.. manim:: ImageFromArray
:save_last_frame:
@@ -63,22 +63,6 @@ class ImageMobject(AbstractImageMobject):
image.set_height(7)
self.add(image)
- .. manim:: ImageFromFile
- :save_last_frame:
-
- class ImageFromFile(Scene):
- def construct(self):
- # Use PIL when you want to import an image from the web
- import requests
- from PIL import Image
- img = Image.open(requests.get("https://raw.githubusercontent.com/ManimCommunity/manim/master/logo/cropped.png",
- stream=True).raw)
- img_mobject = ImageMobject(img)
- # this line, when you want to import your Image on your machine
- # img_mobject = ImageMobject("<your image address>")
- img_mobject.scale(3)
- self.add(img_mobject)
-
"""
CONFIG = {