Colors#
Qualified name: manim.utils.color.Colors
- class Colors(value)[source]#
Bases:
EnumA list of pre-defined colors.
Examples
The preferred way of using these colors is by importing their constants from manim:
>>> from manim import RED, GREEN, BLUE >>> RED '#FC6255'
Note this way uses the name of the colors in UPPERCASE.
Alternatively, you can also import this Enum directly and use its members directly, through the use of
color.value. Note this way uses the name of the colors in lowercase.>>> from manim.utils.color import Colors >>> Colors.red.value '#FC6255'
Note
The colors of type “C” have an alias equal to the colorname without a letter, e.g. GREEN = GREEN_C
Attributes
whitegray_agray_bgray_cgray_dgray_eblacklighter_graylight_graygraydark_graydarker_grayblue_ablue_bblue_cblue_dblue_epure_bluebluedark_blueteal_ateal_bteal_cteal_dteal_etealgreen_agreen_bgreen_cgreen_dgreen_epure_greengreenyellow_ayellow_byellow_cyellow_dyellow_eyellowgold_agold_bgold_cgold_dgold_egoldred_ared_bred_cred_dred_epure_redredmaroon_amaroon_bmaroon_cmaroon_dmaroon_emaroonpurple_apurple_bpurple_cpurple_dpurple_epurplepinklight_pinkorangelight_browndark_browngray_brown