Skip to content

Commit 133a032

Browse files
committed
Removed use of deprecated classes in the examples
1 parent 0bc665e commit 133a032

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/source/examples/advanced_projects.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Advanced Projects
1919
transform_title.to_corner(UP + LEFT)
2020
self.play(
2121
Transform(title, transform_title),
22-
LaggedStart(*map(FadeOutAndShiftDown, basel)),
22+
LaggedStart(*map(lambda obj: FadeOutAndShift(obj,direction=DOWN), basel)),
2323
)
2424
self.wait()
2525
@@ -31,7 +31,7 @@ Advanced Projects
3131
self.add(grid, grid_title) # Make sure title is on top of grid
3232
self.play(
3333
FadeOut(title),
34-
FadeInFromDown(grid_title),
34+
FadeInFrom(grid_title,direction=DOWN),
3535
ShowCreation(grid, run_time=3, lag_ratio=0.1),
3636
)
3737
self.wait()

docs/source/examples/annotations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Annotations
2424
dot = Dot(ORIGIN)
2525
arrow = Arrow(ORIGIN, [2, 2, 0], buff=0)
2626
numberplane = NumberPlane()
27-
origin_text = TextMobject('(0, 0)').next_to(dot, DOWN)
28-
tip_text = TextMobject('(2, 2)').next_to(arrow.get_end(), RIGHT)
27+
origin_text = Text('(0, 0)').next_to(dot, DOWN)
28+
tip_text = Text('(2, 2)').next_to(arrow.get_end(), RIGHT)
2929
self.add(numberplane, dot, arrow, origin_text, tip_text)
3030

3131
.. manim:: ExampleArrowTips

docs/source/examples/camera_settings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ so one can use all functionality that were used before in the MovingCameraScene
170170
image = ImageMobject(np.uint8([[0, 100, 30, 200],
171171
[255, 0, 5, 33]]))
172172
image.set_height(7)
173-
frame_text = TextMobject("Frame", color=PURPLE).scale(1.4)
174-
zoomed_camera_text = TextMobject("Zoomed camera", color=RED).scale(1.4)
173+
frame_text = Text("Frame", color=PURPLE).scale(1.4)
174+
zoomed_camera_text = Text("Zoomed camera", color=RED).scale(1.4)
175175

176176
self.add(image, dot)
177177
zoomed_camera = self.zoomed_camera

0 commit comments

Comments
 (0)