refactor: extract CTA scene into standalone cta.py
This commit is contained in:
parent
c2c18f10d6
commit
01ccf192ea
|
|
@ -124,14 +124,4 @@ class Architecture(Scene):
|
||||||
self.wait(2.0)
|
self.wait(2.0)
|
||||||
self.play(FadeOut(hl2), FadeOut(hl3), FadeOut(hl_note))
|
self.play(FadeOut(hl2), FadeOut(hl3), FadeOut(hl_note))
|
||||||
|
|
||||||
self.play(FadeOut(VGroup(*layers)), FadeOut(arrows))
|
self.play(FadeOut(VGroup(*layers)), FadeOut(arrows), FadeOut(title))
|
||||||
|
|
||||||
cta = VGroup(
|
|
||||||
Text("AstrAI", font_size=52, color=BLUE),
|
|
||||||
Text("Single GPU · Open Source · 1B params", font_size=22, color=GRAY),
|
|
||||||
Text("github.com/ViperEkura/AstrAI", font_size=18, color=YELLOW),
|
|
||||||
).arrange(DOWN, buff=0.35)
|
|
||||||
cta.move_to(ORIGIN)
|
|
||||||
self.play(Write(cta))
|
|
||||||
self.wait(2.5)
|
|
||||||
self.play(FadeOut(cta), FadeOut(title))
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
from manim import *
|
||||||
|
|
||||||
|
Text.set_default(font="Times New Roman")
|
||||||
|
|
||||||
|
|
||||||
|
class CTA(Scene):
|
||||||
|
def construct(self):
|
||||||
|
cta = VGroup(
|
||||||
|
Text("AstrAI", font_size=52, color=BLUE),
|
||||||
|
Text("Single GPU · Open Source · 1B params", font_size=22, color=GRAY),
|
||||||
|
Text("github.com/ViperEkura/AstrAI", font_size=18, color=YELLOW),
|
||||||
|
).arrange(DOWN, buff=0.35)
|
||||||
|
cta.move_to(ORIGIN)
|
||||||
|
self.play(Write(cta))
|
||||||
|
self.wait(2.5)
|
||||||
|
self.play(FadeOut(cta))
|
||||||
|
|
@ -11,6 +11,7 @@ SCENES = [
|
||||||
("architecture.py", "Architecture"),
|
("architecture.py", "Architecture"),
|
||||||
("continuous_batching.py", "ContinuousBatching"),
|
("continuous_batching.py", "ContinuousBatching"),
|
||||||
("prefix_cache.py", "PrefixCache"),
|
("prefix_cache.py", "PrefixCache"),
|
||||||
|
("cta.py", "CTA"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue