diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-09-26 20:50:41 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-09-26 20:50:41 -0300 |
| commit | fafaebb051907a848a9406f9da19669c81a83a3b (patch) | |
| tree | c30ea26e6b549e5523af2bae5c39569e9a946b12 /scenes/overlay.py | |
| parent | 59355909f2de9236af8168a26c70bcf6caa3b285 (diff) | |
| download | 100cia-videos-fafaebb051907a848a9406f9da19669c81a83a3b.tar.gz 100cia-videos-fafaebb051907a848a9406f9da19669c81a83a3b.zip | |
Translate code, comments and logs to English; English README; configurable paths and env varsHEADmain
Identifiers, docstrings, comments and console messages are now in English.
Narration, subtitles and on-screen text stay in Spanish (they are the video
content). The Blender <-> Godot physics protocol uses English keys and body
prefixes chosen to keep the original creation order, so cached simulations and
renders stay bit-identical. The old Spanish environment variable names are still
accepted.
Diffstat (limited to 'scenes/overlay.py')
| -rw-r--r-- | scenes/overlay.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scenes/overlay.py b/scenes/overlay.py index 0a3eb71..d8d735b 100644 --- a/scenes/overlay.py +++ b/scenes/overlay.py @@ -1,31 +1,31 @@ # -*- coding: utf-8 -*- -"""Capa de interfaz del canal (chip, barra de progreso y subtitulos) para los -videos renderizados en Blender. Se renderiza con --transparent y se compone -encima del 3D, asi el estilo sale del mismo codigo que los videos de Manim. +"""Channel UI layer (chip, progress bar and subtitles) for the videos rendered +in Blender. It is rendered with --transparent and composited over the 3D, so +the style comes from the same code as the Manim videos. NAME=bolapeluda CHIP=Topología CHIPCOL=celeste manim --transparent ... -Tambien escribe out/<name>_timeline.json, que es lo que despues leen el script -de Blender (para animar) y build_video.py (para colocar el audio). +It also writes out/<name>_timeline.json, which the Blender script (to animate) +and build_video.py (to place the audio) read afterwards. """ import os, sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from manim import * from tiktok import * -COLORES = {"ambar": AMBAR, "verde": VERDE, "rosa": ROSA, "celeste": CELESTE} +PALETTE = {"ambar": AMBER, "verde": C_GREEN, "rosa": C_PINK, "celeste": C_SKY} class Overlay(TikTok): NAME = os.environ.get("NAME", "") def backdrop(self): - return VGroup() # el fondo punteado va aparte, debajo del 3D + return VGroup() # the dotted background goes separately, under the 3D def construct(self): self.prepare() chip = self.chip(os.environ.get("CHIP", ""), - COLORES[os.environ.get("CHIPCOL", "ambar")]) + PALETTE[os.environ.get("CHIPCOL", "ambar")]) self.add(chip) for i in range(len(self.segs)): with self.beat(i) as b: @@ -33,8 +33,8 @@ class Overlay(TikTok): self.finish() -class Fondo(TikTok): - """Un solo frame con la trama de puntos, para usar de fondo.""" +class Backdrop(TikTok): + """A single frame with the dot pattern, to use as background.""" NAME = "fondo" def construct(self): |