|
| 1 | +from manim import * |
| 2 | + |
| 3 | + |
| 4 | +class ProductPromo(Scene): |
| 5 | + """ebuild — promotional video.""" |
| 6 | + |
| 7 | + def construct(self): |
| 8 | + self.camera.background_color = "#0f172a" |
| 9 | + accent = "#16a34a" |
| 10 | + |
| 11 | + # ── Scene 1: Logo Reveal ── |
| 12 | + title = Text("ebuild", font_size=96, color=WHITE, weight=BOLD) |
| 13 | + tagline = Text( |
| 14 | + "EoS Embedded Build System", |
| 15 | + font_size=32, color=GRAY_B, |
| 16 | + ) |
| 17 | + tagline.next_to(title, DOWN, buff=0.6) |
| 18 | + |
| 19 | + self.play(Write(title), run_time=1.5) |
| 20 | + self.play(FadeIn(tagline, shift=UP * 0.3), run_time=0.8) |
| 21 | + self.wait(2) |
| 22 | + self.play(FadeOut(title), FadeOut(tagline)) |
| 23 | + |
| 24 | + # ── Scene 2: Feature Showcase ── |
| 25 | + features = [ |
| 26 | + "Cross-Compilation Toolchains", |
| 27 | + "Incremental Builds", |
| 28 | + "Dependency Resolution", |
| 29 | + ] |
| 30 | + for i, feat in enumerate(features): |
| 31 | + num = Text( |
| 32 | + f"0{i+1}", font_size=120, color=accent, weight=BOLD, font="Monospace", |
| 33 | + ).set_opacity(0.15) |
| 34 | + num.to_edge(LEFT, buff=1.5).shift(UP * 0.5) |
| 35 | + |
| 36 | + feat_text = Text(feat, font_size=52, color=WHITE, weight=BOLD) |
| 37 | + feat_text.next_to(num, RIGHT, buff=0.8).align_to(num, UP) |
| 38 | + |
| 39 | + bar = Rectangle( |
| 40 | + width=8, height=0.06, color=accent, fill_opacity=1, |
| 41 | + ) |
| 42 | + bar.next_to(feat_text, DOWN, buff=0.3, aligned_edge=LEFT) |
| 43 | + |
| 44 | + self.play( |
| 45 | + FadeIn(num, shift=RIGHT * 0.5), |
| 46 | + Write(feat_text), |
| 47 | + GrowFromEdge(bar, LEFT), |
| 48 | + run_time=1.0, |
| 49 | + ) |
| 50 | + self.wait(1.5) |
| 51 | + self.play(FadeOut(num), FadeOut(feat_text), FadeOut(bar), run_time=0.5) |
| 52 | + |
| 53 | + # ── Scene 3: Architecture Flash ── |
| 54 | + arch_title = Text("Architecture", font_size=28, color=GRAY_B) |
| 55 | + arch_title.to_edge(UP, buff=0.8) |
| 56 | + |
| 57 | + boxes = VGroup() |
| 58 | + labels = ["Core", "API", "Runtime"] |
| 59 | + for j, lbl in enumerate(labels): |
| 60 | + box = RoundedRectangle( |
| 61 | + corner_radius=0.15, width=2.5, height=1.2, |
| 62 | + stroke_color=accent, fill_color="#1e293b", fill_opacity=1, |
| 63 | + ) |
| 64 | + box_label = Text(lbl, font_size=22, color=WHITE) |
| 65 | + box_label.move_to(box) |
| 66 | + grp = VGroup(box, box_label) |
| 67 | + boxes.add(grp) |
| 68 | + boxes.arrange(RIGHT, buff=0.6) |
| 69 | + |
| 70 | + arrows = VGroup() |
| 71 | + for j in range(len(boxes) - 1): |
| 72 | + arr = Arrow( |
| 73 | + boxes[j].get_right(), boxes[j + 1].get_left(), |
| 74 | + color=accent, buff=0.1, stroke_width=2, |
| 75 | + ) |
| 76 | + arrows.add(arr) |
| 77 | + |
| 78 | + self.play(FadeIn(arch_title)) |
| 79 | + self.play(LaggedStart(*[FadeIn(b, shift=UP * 0.3) for b in boxes], lag_ratio=0.2)) |
| 80 | + self.play(LaggedStart(*[GrowArrow(a) for a in arrows], lag_ratio=0.15)) |
| 81 | + self.wait(2) |
| 82 | + self.play(FadeOut(arch_title), FadeOut(boxes), FadeOut(arrows)) |
| 83 | + |
| 84 | + # ── Scene 4: CTA ── |
| 85 | + cta = Text("ebuild", font_size=72, color=WHITE, weight=BOLD) |
| 86 | + url = Text( |
| 87 | + "github.com/embeddedos-org/ebuild", |
| 88 | + font_size=24, color=accent, |
| 89 | + ) |
| 90 | + url.next_to(cta, DOWN, buff=0.5) |
| 91 | + badge = Text("Open Source", font_size=18, color=GRAY_B) |
| 92 | + badge.next_to(url, DOWN, buff=0.4) |
| 93 | + |
| 94 | + self.play(Write(cta), run_time=1.0) |
| 95 | + self.play(FadeIn(url, shift=UP * 0.2)) |
| 96 | + self.play(FadeIn(badge, shift=UP * 0.2)) |
| 97 | + self.wait(3) |
0 commit comments