Colors

Qualified name: 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

white

gray_a

gray_b

gray_c

gray_d

gray_e

black

lighter_gray

light_gray

gray

dark_gray

darker_gray

blue_a

blue_b

blue_c

blue_d

blue_e

pure_blue

blue

dark_blue

teal_a

teal_b

teal_c

teal_d

teal_e

teal

green_a

green_b

green_c

green_d

green_e

pure_green

green

yellow_a

yellow_b

yellow_c

yellow_d

yellow_e

yellow

gold_a

gold_b

gold_c

gold_d

gold_e

gold

red_a

red_b

red_c

red_d

red_e

pure_red

red

maroon_a

maroon_b

maroon_c

maroon_d

maroon_e

maroon

purple_a

purple_b

purple_c

purple_d

purple_e

purple

pink

light_pink

orange

light_brown

dark_brown

gray_brown