Clean up colors, e.g. replacing LIGHT_GREY and DARK_GREY with GREY_B and GREY_D

This commit is contained in:
Grant Sanderson 2021-01-02 22:44:53 -08:00
parent 32b76bf448
commit 3b26a6c260
5 changed files with 12 additions and 22 deletions

View file

@ -102,9 +102,6 @@ DEFAULT_STROKE_WIDTH = 4
# Colors # Colors
COLOR_MAP = { COLOR_MAP = {
"DARK_BLUE": "#236B8E",
"DARK_BROWN": "#8B4513",
"LIGHT_BROWN": "#CD853F",
"BLUE_E": "#1C758A", "BLUE_E": "#1C758A",
"BLUE_D": "#29ABCA", "BLUE_D": "#29ABCA",
"BLUE_C": "#58C4DD", "BLUE_C": "#58C4DD",
@ -145,23 +142,16 @@ COLOR_MAP = {
"PURPLE_C": "#9A72AC", "PURPLE_C": "#9A72AC",
"PURPLE_B": "#B189C6", "PURPLE_B": "#B189C6",
"PURPLE_A": "#CAA3E8", "PURPLE_A": "#CAA3E8",
"GREY_E": "#222222",
"GREY_D": "#444444",
"GREY_C": "#888888",
"GREY_B": "#BBBBBB",
"GREY_A": "#DDDDDD",
"WHITE": "#FFFFFF", "WHITE": "#FFFFFF",
"BLACK": "#000000", "BLACK": "#000000",
"GREY_A": "#DDDDDD",
"GREY_B": "#BBBBBB",
"GREY_C": "#888888",
"GREY_D": "#444444",
"GREY_E": "#222222",
# TODO, remove these greys
"LIGHT_GRAY": "#BBBBBB",
"LIGHT_GREY": "#BBBBBB",
"GRAY": "#888888",
"GREY": "#888888",
"DARK_GREY": "#444444",
"DARK_GRAY": "#444444",
"DARKER_GREY": "#222222",
"DARKER_GRAY": "#222222",
"GREY_BROWN": "#736357", "GREY_BROWN": "#736357",
"DARK_BROWN": "#8B4513",
"LIGHT_BROWN": "#CD853F",
"PINK": "#D147BD", "PINK": "#D147BD",
"LIGHT_PINK": "#DC75CD", "LIGHT_PINK": "#DC75CD",
"GREEN_SCREEN": "#00FF00", "GREEN_SCREEN": "#00FF00",

View file

@ -12,7 +12,7 @@ from manimlib.utils.space_ops import normalize
class NumberLine(Line): class NumberLine(Line):
CONFIG = { CONFIG = {
"color": LIGHT_GREY, "color": GREY_B,
"stroke_width": 2, "stroke_width": 2,
# List of 2 or 3 elements, x_min, x_max, step_size # List of 2 or 3 elements, x_min, x_max, step_size
"x_range": [-8, 8, 1], "x_range": [-8, 8, 1],

View file

@ -16,10 +16,10 @@ class SampleSpace(Rectangle):
CONFIG = { CONFIG = {
"height": 3, "height": 3,
"width": 3, "width": 3,
"fill_color": DARK_GREY, "fill_color": GREY_D,
"fill_opacity": 1, "fill_opacity": 1,
"stroke_width": 0.5, "stroke_width": 0.5,
"stroke_color": LIGHT_GREY, "stroke_color": GREY_B,
## ##
"default_label_scale_val": 1, "default_label_scale_val": 1,
} }

View file

@ -132,7 +132,7 @@ class Laptop(VGroup):
}, },
"fill_opacity": 1, "fill_opacity": 1,
"stroke_width": 0, "stroke_width": 0,
"body_color": LIGHT_GREY, "body_color": GREY_B,
"shaded_body_color": GREY, "shaded_body_color": GREY,
"open_angle": np.pi / 4, "open_angle": np.pi / 4,
} }

View file

@ -288,7 +288,7 @@ class LinearTransformationScene(VectorScene):
"background_plane_kwargs": { "background_plane_kwargs": {
"color": GREY, "color": GREY,
"axis_config": { "axis_config": {
"stroke_color": LIGHT_GREY, "stroke_color": GREY_B,
}, },
"axis_config": { "axis_config": {
"color": GREY, "color": GREY,