A community-maintained Python framework for creating mathematical animations.
Prefer the use of COLOR_MAP over PALETTE
leotrsb22135f335f9
diff --git a/manim/utils/color.py b/manim/utils/color.pyindex eae9ca2e4..5b06292e9 100644--- a/manim/utils/color.py+++ b/manim/utils/color.py@@ -3,7 +3,7 @@ import randomfrom colour import Colorimport numpy as np-from ..constants import PALETTE+from ..constants import COLOR_MAPfrom ..constants import WHITEfrom ..utils.bezier import interpolatefrom ..utils.simple_functions import clip_in_place@@ -98,7 +98,7 @@ def random_bright_color():def random_color():- return random.choice(PALETTE)+ return random.choice(list(COLOR_MAP.values()))def get_shaded_rgb(rgb, point, unit_normal_vect, light_source):