aboutsummaryrefslogtreecommitdiffstats
path: root/scenes/overlay.py
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/overlay.py')
-rw-r--r--scenes/overlay.py20
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):