You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from manimlib import InteractiveScene, BLUE, RED, Text, FadeIn
class Test(InteractiveScene):
def construct(self):
print (self.camera.background_rgba)
title = Text("Hello, world!", color=BLUE, t2c={"world": RED})
self.play(FadeIn(title))
self.wait()
with ./custom_config.yml:
style:
background_color: "#ff00ff"
font: "Comic Sans MS"
(Don't worry, I'm using Comic Sans ironically.)
manimgl test.py:
Here, I note a few things:
The background color is black rather than the expected magenta.
The background color in custom_config.yml has been loaded and set in the scene's camera object (see highlighted text in the screenshot), but it's still black.
The font specified only in custom_config.yml has been picked up and used.
This demonstrates the custom config is loading.
Additionally, but possibly unrelated:
"Hello, " is white, not blue as intended.
"world" is red, as intended, using t2c
This is within a venv running Python 3.12 with a fresh install of Manim 1.7.1, all on a Mac M4 on Sequoia 15.1.1.
Describe the error
custom_config.yml
in the same folder, and filled in some params (changed background color)manimgl animation.py HelloLaTeX
Code and Error
custom_config.yml
animation.py
The background color has not changed(still black), and it did not support Chinese.
I logged the intermediate latex command like:
which did not invoke
xelatex -no-pdf
as config file required.Environment
OS System: macOS m1
manim version: 1.7.1
python version: Python 3.10.15
The text was updated successfully, but these errors were encountered: