color#
Utilities for working with colors and predefined color constants.
Color data structure#
Manim's (internal) color data structure and some utilities for color conversion. |
Predefined colors#
There are several predefined colors available in Manim:
The colors listed in
color.manim_colors
are loaded into Manim’s global name space.The colors in
color.AS2700
,color.BS381
,color.X11
, andcolor.XKCD
need to be accessed via their module (which are available in Manim’s global name space), or imported separately. For example:>>> from manim import XKCD >>> XKCD.AVOCADO ManimColor('#90B134')
Or, alternatively:
>>> from manim.utils.color.XKCD import AVOCADO >>> AVOCADO ManimColor('#90B134')
The following modules contain the predefined color constants:
Colors included in the global name space. |
|
Australian Color Standard |
|
British Color Standard |
|
Colors from the XKCD Color Name Survey |
|
X11 Colors |