From fafaebb051907a848a9406f9da19669c81a83a3b Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 26 Sep 2026 20:50:41 -0300 Subject: Translate code, comments and logs to English; English README; configurable paths and env vars 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. --- scenes/overlay.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'scenes/overlay.py') 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/_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/_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): -- cgit v1.2.3