manim.utils.color.Colors

class Colors(value)[source]

Bases: enum.Enum

A list of pre-defined colors.

Examples

../_images/ColorsOverview-1.png

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

black

blue_a

blue_b

blue_c

blue_d

blue_e

dark_brown

gold_a

gold_b

gold_c

gold_d

gold_e

gray_a

gray_b

gray_brown

gray_c

gray_d

gray_e

green_a

green_b

green_c

green_d

green_e

light_brown

light_pink

maroon_a

maroon_b

maroon_c

maroon_d

maroon_e

orange

pink

pure_blue

pure_green

pure_red

purple_a

purple_b

purple_c

purple_d

purple_e

red_a

red_b

red_c

red_d

red_e

teal_a

teal_b

teal_c

teal_d

teal_e

white

yellow_a

yellow_b

yellow_c

yellow_d

yellow_e