mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Created a method `remove_all_except()
` in scene.py and interactive_scene.py, and made default colors easily configurable. (#2346)
* created a method remove_all_except() in scene.py and interactive_scene.py * Made it such that default mobject colors can be set through the yaml config file. * * Default color initialisation wasn't working. Changed conditional expression to `or` instead. * Added default values to yaml file. * added set_background_color() function to Scene class * Changed default font back to Consolas
This commit is contained in:
@ -6,7 +6,7 @@ from pyglet.window import key as PygletWindowKeys
|
||||
from manimlib.constants import FRAME_HEIGHT, FRAME_WIDTH
|
||||
from manimlib.constants import DOWN, LEFT, ORIGIN, RIGHT, UP
|
||||
from manimlib.constants import MED_LARGE_BUFF, MED_SMALL_BUFF, SMALL_BUFF
|
||||
from manimlib.constants import BLACK, BLUE, GREEN, GREY_A, GREY_C, RED, WHITE
|
||||
from manimlib.constants import BLACK, BLUE, GREEN, GREY_A, GREY_C, RED, WHITE, DEFAULT_MOBJECT_COLOR
|
||||
from manimlib.mobject.mobject import Group
|
||||
from manimlib.mobject.mobject import Mobject
|
||||
from manimlib.mobject.geometry import Circle
|
||||
@ -387,7 +387,7 @@ class Textbox(ControlMobject):
|
||||
box_kwargs: dict = {
|
||||
"width": 2.0,
|
||||
"height": 1.0,
|
||||
"fill_color": WHITE,
|
||||
"fill_color": DEFAULT_MOBJECT_COLOR,
|
||||
"fill_opacity": 1.0,
|
||||
},
|
||||
text_kwargs: dict = {
|
||||
|
Reference in New Issue
Block a user