Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 10, 2024
1 parent 474f238 commit be5b466
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,29 @@ def construct(self):
self.play(
Write(title),
)
self.play(
Write(Text(f"Some text {1}").shift(1.5 * UP))
self.play(Write(Text(f"Some text {1}").shift(1.5 * UP)))
switch = Rectangle(
height=2, width=3, color=BLUE, fill_color=BLACK, fill_opacity=1
)
switch = Rectangle(height=2, width=3, color=BLUE, fill_color=BLACK, fill_opacity=1)

self.play(
Create(switch),
)
self.play(
Write(Text(f"Some text {2}").shift(1.5 * UP + 1 * DOWN))
)
self.play(
Write(Text(f"Some text {3}").shift(1.5 * UP + 2 * DOWN))
)
self.play(Write(Text(f"Some text {2}").shift(1.5 * UP + 1 * DOWN)))
self.play(Write(Text(f"Some text {3}").shift(1.5 * UP + 2 * DOWN)))
self.next_slide()
self.play(
*[FadeOut(mob) for mob in self.mobjects]
)
self.play(*[FadeOut(mob) for mob in self.mobjects])
self.next_slide()


class Scene2(Scene):
def construct(self):
title = Text("Slide 2").shift(3 * UP)
self.play(
Write(title)
)
self.play(Write(title))
text1 = Tex("Some text 1").shift(1.5 * UP)
text2 = Tex("Some text 2").shift(0.5 * UP)
text3 = Tex("Some text 3").shift(-0.5 * UP)
self.play(
Write(text1)
)
self.play(
Write(text2)
)
self.play(
Write(text3)
)
self.play(
*[FadeOut(mob) for mob in self.mobjects]
)
self.play(Write(text1))
self.play(Write(text2))
self.play(Write(text3))
self.play(*[FadeOut(mob) for mob in self.mobjects])

0 comments on commit be5b466

Please sign in to comment.