File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ def reset_points(self):
51
51
class ImageMobject (AbstractImageMobject ):
52
52
"""Displays an Image from a numpy array or a file.
53
53
54
- Examples
55
- --------
54
+ Example
55
+ -------
56
56
.. manim:: ImageFromArray
57
57
:save_last_frame:
58
58
@@ -63,22 +63,6 @@ def construct(self):
63
63
image.set_height(7)
64
64
self.add(image)
65
65
66
- .. manim:: ImageFromFile
67
- :save_last_frame:
68
-
69
- class ImageFromFile(Scene):
70
- def construct(self):
71
- # Use PIL when you want to import an image from the web
72
- import requests
73
- from PIL import Image
74
- img = Image.open(requests.get("https://raw.githubusercontent.com/ManimCommunity/manim/master/logo/cropped.png",
75
- stream=True).raw)
76
- img_mobject = ImageMobject(img)
77
- # this line, when you want to import your Image on your machine
78
- # img_mobject = ImageMobject("<your image address>")
79
- img_mobject.scale(3)
80
- self.add(img_mobject)
81
-
82
66
"""
83
67
84
68
CONFIG = {
You can’t perform that action at this time.
0 commit comments