Skip to content

Commit 2e6da27

Browse files
committed
Taking kolibril review into account, changing the logo to the new one
1 parent 71050b7 commit 2e6da27

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

docs/source/examples/shapes_images_positions.rst

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Shapes, Images and Positions
1414
s.next_to(c, LEFT)
1515
t.next_to(c, DOWN)
1616
self.add(d, c, s, t)
17-
self.wait(1)
17+
self.wait()
1818

1919

2020
.. manim:: ShapesExample
@@ -57,11 +57,9 @@ Shapes, Images and Positions
5757
class GradientImageFromArrayExample(Scene):
5858
def construct(self):
5959
n = 256
60-
imageArray = np.uint8([[i*256/n for i in range(0,n)] for j in range(0,n)])
60+
imageArray = np.uint8([[i*256/n for i in range(0,n)] for _ in range(0,n)])
6161
image = ImageMobject(imageArray).scale(2)
62-
image.next_to(ORIGIN,LEFT, SMALL_BUFF)
6362
self.add(image)
64-
self.wait(1)
6563

6664

6765
.. manim:: ImageFromFileExample
@@ -72,7 +70,7 @@ Shapes, Images and Positions
7270
# Use PIL when you want to import an image from the web
7371
import requests
7472
from PIL import Image
75-
img = Image.open(requests.get("https://raw.githubusercontent.com/ManimCommunity/manim/master/logo/cropped.png",
73+
img = Image.open(requests.get("https://raw.githubusercontent.com/ManimCommunity/manim/master/logo/logoWAlpha.png",
7674
stream=True).raw)
7775
img_mobject = ImageMobject(img)
7876
# this line, when you want to import your Image on your machine
@@ -96,7 +94,6 @@ Shapes, Images and Positions
9694
for rad,col in zip(radius,colors)])
9795
9896
self.add(circles_group)
99-
self.wait(2)
10097

10198

10299
.. manim:: InterpolationExample
@@ -154,6 +151,7 @@ Shapes, Images and Positions
154151

155152

156153
.. manim:: SplineExample
154+
:save_last_frame:
157155

158156
class SplineExample(Scene):
159157
def construct(self):
@@ -216,18 +214,10 @@ Shapes, Images and Positions
216214
dest_line1_point2 )
217215

218216

219-
start=VGroup(Line(destination_dot1.get_center(), destination_dot2.get_center()),
220-
destination_dot1.copy(),
221-
destination_dot2.copy())
222-
start.scale(0.5)
223-
224-
end= VGroup(Lp1s1, Lp2s2,dest_line1,dest_line2,destination_dot1,destination_dot2)
225-
end.scale(2)
217+
mobjects= VGroup(Lp1s1, Lp2s2,dest_line1,dest_line2,destination_dot1,destination_dot2)
226218

227-
self.add(start)
228-
self.wait()
229-
self.play(ClockwiseTransform(start,end), run_time=3)
230-
self.wait()
219+
mobjects.scale(2)
220+
self.add(mobjects)
231221

232222
Note: Here can come the UnitDot Example.
233223

0 commit comments

Comments
 (0)