refactor: extract CTA scene into standalone cta.py

This commit is contained in:
ViperEkura 2026-05-07 23:14:26 +08:00
parent c2c18f10d6
commit 01ccf192ea
3 changed files with 18 additions and 11 deletions

View File

@ -124,14 +124,4 @@ class Architecture(Scene):
self.wait(2.0)
self.play(FadeOut(hl2), FadeOut(hl3), FadeOut(hl_note))
self.play(FadeOut(VGroup(*layers)), FadeOut(arrows))
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))
self.play(FadeOut(VGroup(*layers)), FadeOut(arrows), FadeOut(title))

16
cta.py Normal file
View File

@ -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))

View File

@ -11,6 +11,7 @@ SCENES = [
("architecture.py", "Architecture"),
("continuous_batching.py", "ContinuousBatching"),
("prefix_cache.py", "PrefixCache"),
("cta.py", "CTA"),
]