Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

fix: show doc of RandomColorGenerator (#4533)

Arnaud6a56cc5ce601
diff --git a/manim/utils/color/core.py b/manim/utils/color/core.py
index a3831f5d8..d8f5a497c 100644
--- a/manim/utils/color/core.py
+++ b/manim/utils/color/core.py
@@ -1490,7 +1490,6 @@ def random_color() -> ManimColor:
class RandomColorGenerator:
- _singleton: RandomColorGenerator | None = None
"""A generator for producing random colors from a given list of Manim colors,
optionally in a reproducible sequence using a seed value.
@@ -1553,6 +1552,8 @@ class RandomColorGenerator:
ManimColor('#FC6255')
"""
+ _singleton: RandomColorGenerator | None = None
+
def __init__(
self,
seed: int | None = None,