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_colorsare loaded into Manim’s global name space.The colors in
color.AS2700,color.BS381,color.DVIPSNAMES,color.SVGNAMES,color.X11andcolor.XKCDneed 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 |
|
dvips Colors |
|
SVG 1.1 Colors |
|
Colors from the XKCD Color Name Survey |
|
X11 Colors |