mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Setup for borsuk_addition animations
This commit is contained in:
@ -1459,6 +1459,7 @@ class GeometryProofLand(Scene):
|
||||
PINK, RED, YELLOW, GREEN, GREEN_A, BLUE,
|
||||
MAROON_E, MAROON_B, YELLOW, BLUE,
|
||||
],
|
||||
"text": "Geometry proof land",
|
||||
}
|
||||
|
||||
def construct(self):
|
||||
@ -1469,6 +1470,7 @@ class GeometryProofLand(Scene):
|
||||
colors = list(self.colors)
|
||||
random.shuffle(colors)
|
||||
word_outlines.set_color_by_gradient(*colors)
|
||||
word_outlines.set_stroke(width=5)
|
||||
|
||||
circles = VGroup()
|
||||
for letter in word:
|
||||
@ -1485,14 +1487,16 @@ class GeometryProofLand(Scene):
|
||||
LaggedStart(MoveToTarget, circles),
|
||||
run_time=2
|
||||
)
|
||||
self.add(word_outlines, circles)
|
||||
self.play(LaggedStart(
|
||||
ShowCreationThenDestruction, word_outlines,
|
||||
run_time=4
|
||||
))
|
||||
FadeIn, word_outlines,
|
||||
run_time=3,
|
||||
rate_func=there_and_back,
|
||||
), Animation(circles))
|
||||
self.wait()
|
||||
|
||||
def get_geometry_proof_land_word(self):
|
||||
word = TextMobject("Geometry proof land")
|
||||
word = TextMobject(self.text)
|
||||
word.rotate(-90 * DEGREES)
|
||||
word.scale(0.25)
|
||||
word.shift(3 * RIGHT)
|
||||
@ -1502,6 +1506,7 @@ class GeometryProofLand(Scene):
|
||||
word.center()
|
||||
word.to_edge(UP)
|
||||
word.set_color_by_gradient(*self.colors)
|
||||
word.set_background_stroke(width=0)
|
||||
return word
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user