Skip to content

Commit 0721cb5

Browse files
authored
Merge pull request #496 from ManimCommunity/enums-patch
Follow Up PR from Color enums
2 parents 97de346 + 9a4de7f commit 0721cb5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

manim/utils/color.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ class Colors(Enum):
104104
105105
.. code-block:: python
106106
107-
import manim.utils.color as C
108-
C.WHITE # -> '#FFFFFF'
107+
>>> import manim.utils.color as C
108+
>>> C.WHITE
109+
'#FFFFFF'
109110
110111
Note this way uses the name of the colors in UPPERCASE.
111112
@@ -115,8 +116,9 @@ class Colors(Enum):
115116
116117
.. code-block:: python
117118
118-
from manim.utils.color import Colors
119-
Colors.white.value # -> '#FFFFFF'
119+
>>> from manim.utils.color import Colors
120+
>>> Colors.white.value
121+
'#FFFFFF'
120122
121123
"""
122124

0 commit comments

Comments
 (0)